Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- CompositeKey.cs
- IndexedSelectQueryOperator.cs
- MatrixUtil.cs
- LinqDataSourceUpdateEventArgs.cs
- WebSysDefaultValueAttribute.cs
- DoubleLinkListEnumerator.cs
- CacheVirtualItemsEvent.cs
- IdentifierService.cs
- DataBindingList.cs
- SelectionProviderWrapper.cs
- TypeToken.cs
- DropAnimation.xaml.cs
- DeploymentSection.cs
- BlurBitmapEffect.cs
- DataGridItem.cs
- SmiXetterAccessMap.cs
- PropertyItemInternal.cs
- PocoPropertyAccessorStrategy.cs
- MobileComponentEditorPage.cs
- KeysConverter.cs
- RenderCapability.cs
- DesignerValidatorAdapter.cs
- StaticResourceExtension.cs
- Soap.cs
- ZipIOLocalFileDataDescriptor.cs
- CompositeActivityDesigner.cs
- ImagingCache.cs
- AdjustableArrowCap.cs
- PageRouteHandler.cs
- OleDbFactory.cs
- ParsedAttributeCollection.cs
- XmlAttributeOverrides.cs
- RemotingServices.cs
- TdsValueSetter.cs
- LoginUtil.cs
- ClassDataContract.cs
- OleDbParameterCollection.cs
- SmtpMail.cs
- InputProviderSite.cs
- RichTextBoxAutomationPeer.cs
- XmlSchemaObject.cs
- WebBrowserHelper.cs
- InvokePattern.cs
- FontWeightConverter.cs
- EntityContainer.cs
- XmlObjectSerializerWriteContext.cs
- BitmapEffectGeneralTransform.cs
- GridViewDesigner.cs
- XslNumber.cs
- WeakEventTable.cs
- ObjectDataSourceFilteringEventArgs.cs
- ProfileGroupSettings.cs
- LoginAutoFormat.cs
- SelectionPattern.cs
- ApplicationFileCodeDomTreeGenerator.cs
- PriorityRange.cs
- DataControlFieldHeaderCell.cs
- CachedTypeface.cs
- GrammarBuilderBase.cs
- SafeCertificateStore.cs
- XPathDocumentNavigator.cs
- Type.cs
- PointLightBase.cs
- EUCJPEncoding.cs
- CompilerGlobalScopeAttribute.cs
- MatrixAnimationBase.cs
- InputDevice.cs
- RawAppCommandInputReport.cs
- MetafileHeaderWmf.cs
- DynamicQueryableWrapper.cs
- PersonalizationProvider.cs
- IdentityNotMappedException.cs
- AppSettingsExpressionBuilder.cs
- Binding.cs
- InitializationEventAttribute.cs
- XmlEnumAttribute.cs
- RuntimeIdentifierPropertyAttribute.cs
- SystemPens.cs
- PersianCalendar.cs
- HMACSHA384.cs
- LinearGradientBrush.cs
- OutputWindow.cs
- SemanticKeyElement.cs
- RuntimeConfig.cs
- StateChangeEvent.cs
- DisplayToken.cs
- FullTextBreakpoint.cs
- LogStore.cs
- HttpResponse.cs
- SchemaNotation.cs
- PrintingPermission.cs
- ItemCheckEvent.cs
- AnonymousIdentificationModule.cs
- ClientSettingsStore.cs
- WinEventQueueItem.cs
- SecurityTokenProvider.cs
- HttpCachePolicyWrapper.cs
- RSAOAEPKeyExchangeFormatter.cs
- Menu.cs
- CaseInsensitiveHashCodeProvider.cs