Code:
/ 4.0 / 4.0 / 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. //---------------------------------------------------------------------------- // //// 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
- TraceContext.cs
- ReadOnlyHierarchicalDataSource.cs
- NavigationWindow.cs
- RichTextBox.cs
- StrokeCollection.cs
- ReadOnlyObservableCollection.cs
- XmlSchemaValidationException.cs
- WebPartConnectVerb.cs
- Animatable.cs
- UserPreferenceChangedEventArgs.cs
- RadialGradientBrush.cs
- EndCreateSecurityTokenRequest.cs
- CodeCastExpression.cs
- ValueConversionAttribute.cs
- SpecialFolderEnumConverter.cs
- StreamResourceInfo.cs
- Native.cs
- ImageMap.cs
- PointConverter.cs
- State.cs
- XXXOnTypeBuilderInstantiation.cs
- EventLogWatcher.cs
- ResourceExpression.cs
- basemetadatamappingvisitor.cs
- DataStreamFromComStream.cs
- WebExceptionStatus.cs
- Main.cs
- WorkflowDataContext.cs
- SqlUtils.cs
- WebPartHelpVerb.cs
- XmlBinaryReaderSession.cs
- ScrollItemPattern.cs
- ProcessRequestArgs.cs
- HttpListener.cs
- HtmlTableCell.cs
- EntityProviderFactory.cs
- TextMarkerSource.cs
- WS2007FederationHttpBindingElement.cs
- CalendarDayButton.cs
- CellPartitioner.cs
- UnsafeNativeMethods.cs
- DataGridViewLayoutData.cs
- ByteFacetDescriptionElement.cs
- ExpressionLexer.cs
- Wow64ConfigurationLoader.cs
- ComponentResourceKeyConverter.cs
- IIS7WorkerRequest.cs
- BooleanProjectedSlot.cs
- WindowInteropHelper.cs
- SafeViewOfFileHandle.cs
- PolicyLevel.cs
- SetUserLanguageRequest.cs
- AnimatedTypeHelpers.cs
- DynamicFilterExpression.cs
- AssemblyCache.cs
- DoubleConverter.cs
- EncoderFallback.cs
- MessageQueueKey.cs
- NameValueFileSectionHandler.cs
- ToolStripContentPanel.cs
- SystemIPInterfaceStatistics.cs
- CompressStream.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- DnsPermission.cs
- TextProperties.cs
- XmlSerializationReader.cs
- DoubleAnimationUsingKeyFrames.cs
- ParserExtension.cs
- FixUp.cs
- NamespaceDisplay.xaml.cs
- SecurityProtocolFactory.cs
- UnsafeNativeMethodsMilCoreApi.cs
- Accessible.cs
- AssemblyBuilderData.cs
- IndexedGlyphRun.cs
- odbcmetadatafactory.cs
- ScriptIgnoreAttribute.cs
- SafeSecurityHandles.cs
- ToolStripArrowRenderEventArgs.cs
- _CacheStreams.cs
- ExpressionPrefixAttribute.cs
- EntityDataSourceColumn.cs
- _AuthenticationState.cs
- ObjectTokenCategory.cs
- ComponentGuaranteesAttribute.cs
- ExtensionSurface.cs
- AssemblyName.cs
- NativeMethods.cs
- DataSourceDescriptorCollection.cs
- KeyboardNavigation.cs
- RightNameExpirationInfoPair.cs
- RichTextBoxContextMenu.cs
- WaitForChangedResult.cs
- EdmProperty.cs
- XamlClipboardData.cs
- WindowsGraphicsCacheManager.cs
- AvTrace.cs
- NamedObject.cs
- TextViewElement.cs
- WebMethodAttribute.cs