Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Shared / MS / Internal / Generated / AlignmentXValidation.cs / 1 / AlignmentXValidation.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // This file was generated, please do not edit it directly. // // Please see http://wiki/default.aspx/Microsoft.Projects.Avalon/MilCodeGen.html for more information. // //--------------------------------------------------------------------------- using System; using System.ComponentModel; using System.Runtime.InteropServices; using MS.Internal.PresentationCore; #if PRESENTATION_CORE using SR=MS.Internal.PresentationCore.SR; using SRID=MS.Internal.PresentationCore.SRID; #else using SR=System.Windows.SR; using SRID=System.Windows.SRID; #endif namespace System.Windows.Media { internal static partial class ValidateEnums { ////// Returns whether or not an enumeration instance a valid value. /// This method is designed to be used with ValidateValueCallback, and thus /// matches it's prototype. /// /// /// Enumeration value to validate. /// ///'true' if the enumeration contains a valid value, 'false' otherwise. public static bool IsAlignmentXValid(object valueObject) { AlignmentX value = (AlignmentX) valueObject; return (value == AlignmentX.Left) || (value == AlignmentX.Center) || (value == AlignmentX.Right); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // This file was generated, please do not edit it directly. // // Please see http://wiki/default.aspx/Microsoft.Projects.Avalon/MilCodeGen.html for more information. // //--------------------------------------------------------------------------- using System; using System.ComponentModel; using System.Runtime.InteropServices; using MS.Internal.PresentationCore; #if PRESENTATION_CORE using SR=MS.Internal.PresentationCore.SR; using SRID=MS.Internal.PresentationCore.SRID; #else using SR=System.Windows.SR; using SRID=System.Windows.SRID; #endif namespace System.Windows.Media { internal static partial class ValidateEnums { ////// Returns whether or not an enumeration instance a valid value. /// This method is designed to be used with ValidateValueCallback, and thus /// matches it's prototype. /// /// /// Enumeration value to validate. /// ///'true' if the enumeration contains a valid value, 'false' otherwise. public static bool IsAlignmentXValid(object valueObject) { AlignmentX value = (AlignmentX) valueObject; return (value == AlignmentX.Left) || (value == AlignmentX.Center) || (value == AlignmentX.Right); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- storepermissionattribute.cs
- Image.cs
- ExponentialEase.cs
- StateInitialization.cs
- HitTestParameters3D.cs
- NGCUIElementCollectionSerializerAsync.cs
- ProfilePropertySettingsCollection.cs
- SystemPens.cs
- TheQuery.cs
- GridViewHeaderRowPresenter.cs
- SqlUserDefinedTypeAttribute.cs
- CounterSample.cs
- UdpReplyToBehavior.cs
- ConstraintCollection.cs
- documentsequencetextcontainer.cs
- SystemWebSectionGroup.cs
- TemplateField.cs
- WindowsListBox.cs
- RuleSetReference.cs
- DbDataSourceEnumerator.cs
- MultiSelectRootGridEntry.cs
- CodeDelegateCreateExpression.cs
- BulletedList.cs
- MouseCaptureWithinProperty.cs
- ObfuscationAttribute.cs
- SEHException.cs
- IpcServerChannel.cs
- XPathNavigator.cs
- ResourceWriter.cs
- Executor.cs
- Button.cs
- SqlProviderManifest.cs
- AutoGeneratedFieldProperties.cs
- ProjectionAnalyzer.cs
- ListViewHitTestInfo.cs
- MethodBody.cs
- Icon.cs
- SpeechEvent.cs
- DependencyPropertyConverter.cs
- XmlDataSourceDesigner.cs
- ISAPIWorkerRequest.cs
- BuildProvidersCompiler.cs
- SharedStatics.cs
- BindableTemplateBuilder.cs
- ProviderIncompatibleException.cs
- Calendar.cs
- ThicknessAnimationUsingKeyFrames.cs
- SqlTriggerAttribute.cs
- MemberPathMap.cs
- StorageMappingItemLoader.cs
- AudienceUriMode.cs
- SystemParameters.cs
- SHA384.cs
- EditableTreeList.cs
- EndpointIdentityConverter.cs
- DeferredReference.cs
- SrgsSubset.cs
- ApplicationFileParser.cs
- Constants.cs
- AnnotationResource.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- DesignerContextDescriptor.cs
- TextContainerChangedEventArgs.cs
- ToolBarTray.cs
- TimeStampChecker.cs
- DataGridViewRowCollection.cs
- WizardForm.cs
- ApplicationActivator.cs
- ETagAttribute.cs
- BitmapVisualManager.cs
- CompilationUtil.cs
- ListItemCollection.cs
- AssemblyFilter.cs
- BufferModeSettings.cs
- XmlText.cs
- TreeNodeSelectionProcessor.cs
- Binding.cs
- RijndaelCryptoServiceProvider.cs
- DataTableMappingCollection.cs
- Pool.cs
- XmlnsCache.cs
- ApplicationProxyInternal.cs
- EventBuilder.cs
- ColumnPropertiesGroup.cs
- ToolStripItemClickedEventArgs.cs
- Line.cs
- EntityContainerEmitter.cs
- PieceNameHelper.cs
- CategoryNameCollection.cs
- AdRotator.cs
- IteratorFilter.cs
- ILGen.cs
- MatrixValueSerializer.cs
- MetadataUtilsSmi.cs
- GacUtil.cs
- XmlReaderSettings.cs
- ConfigurationException.cs
- CodeActivityContext.cs
- StatusBar.cs
- SingleSelectRootGridEntry.cs