Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Shared / MS / Internal / Generated / AlignmentXValidation.cs / 1305600 / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- OperationInvokerTrace.cs
- ListBoxItemWrapperAutomationPeer.cs
- TextServicesDisplayAttributePropertyRanges.cs
- FlowDocumentReaderAutomationPeer.cs
- IdnMapping.cs
- InputManager.cs
- PropertyReferenceSerializer.cs
- XmlTextReaderImpl.cs
- MachineKeyConverter.cs
- PropertyEmitterBase.cs
- Point4D.cs
- StreamHelper.cs
- Model3DCollection.cs
- CodeVariableDeclarationStatement.cs
- ExternalDataExchangeService.cs
- SettingsPropertyValue.cs
- ViewgenContext.cs
- ComplexTypeEmitter.cs
- ListViewInsertEventArgs.cs
- WindowsButton.cs
- SqlNotificationRequest.cs
- UnicodeEncoding.cs
- XmlValueConverter.cs
- CharacterBuffer.cs
- TdsParserStateObject.cs
- IndexerReference.cs
- RegistryConfigurationProvider.cs
- AdRotator.cs
- PerformanceCounterPermissionEntry.cs
- InputManager.cs
- InvalidWMPVersionException.cs
- XmlExtensionFunction.cs
- HierarchicalDataBoundControlAdapter.cs
- ControlOperationInvoker.cs
- ClusterSafeNativeMethods.cs
- WebConfigurationFileMap.cs
- handlecollector.cs
- IssuedTokenServiceCredential.cs
- COM2AboutBoxPropertyDescriptor.cs
- HighlightVisual.cs
- InputDevice.cs
- TrackingStringDictionary.cs
- AnimationException.cs
- X509Certificate2Collection.cs
- cookieexception.cs
- CalendarButtonAutomationPeer.cs
- SchemaDeclBase.cs
- TrackingConditionCollection.cs
- filewebrequest.cs
- FixedSOMTable.cs
- TextServicesProperty.cs
- PolicyValidator.cs
- CompositionTarget.cs
- HebrewNumber.cs
- PrintPageEvent.cs
- ExceptionUtil.cs
- RSAOAEPKeyExchangeDeformatter.cs
- RegularExpressionValidator.cs
- StorageEntityContainerMapping.cs
- SByte.cs
- BindingListCollectionView.cs
- ListBoxDesigner.cs
- TemplateXamlTreeBuilder.cs
- CssClassPropertyAttribute.cs
- ModelItem.cs
- CacheHelper.cs
- StorageEntityTypeMapping.cs
- COM2ExtendedBrowsingHandler.cs
- SecurityUtils.cs
- MorphHelper.cs
- PropertyGeneratedEventArgs.cs
- X509UI.cs
- DbParameterCollection.cs
- SecurityTokenProviderContainer.cs
- DesignerSerializerAttribute.cs
- DataGridViewSelectedColumnCollection.cs
- XamlDesignerSerializationManager.cs
- XmlDocumentSerializer.cs
- EndpointDiscoveryMetadata.cs
- EnumDataContract.cs
- Expressions.cs
- MenuAdapter.cs
- LinkedList.cs
- DeviceContexts.cs
- ShutDownListener.cs
- StylusPointCollection.cs
- TypeSemantics.cs
- PageVisual.cs
- BrowserCapabilitiesFactory.cs
- TimeSpanStorage.cs
- ClientRoleProvider.cs
- WebInvokeAttribute.cs
- ListView.cs
- Table.cs
- sqlstateclientmanager.cs
- MSHTMLHost.cs
- DictionaryContent.cs
- TextAction.cs
- AutomationEvent.cs
- CommandArguments.cs