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
- StackSpiller.Generated.cs
- SetIterators.cs
- ControlEvent.cs
- OdbcHandle.cs
- HttpDictionary.cs
- NativeBuffer.cs
- MaterialGroup.cs
- SqlReferenceCollection.cs
- FunctionCommandText.cs
- DesignParameter.cs
- SoapBinding.cs
- TabControl.cs
- LifetimeMonitor.cs
- serverconfig.cs
- WebBrowser.cs
- DataGridBoolColumn.cs
- XmlEventCache.cs
- NetCodeGroup.cs
- TCPClient.cs
- XmlIncludeAttribute.cs
- TextViewSelectionProcessor.cs
- smtppermission.cs
- TableNameAttribute.cs
- DataQuery.cs
- KernelTypeValidation.cs
- InitializerFacet.cs
- AuthenticatingEventArgs.cs
- DirtyTextRange.cs
- PlanCompilerUtil.cs
- BamlBinaryReader.cs
- Label.cs
- SerializationInfoEnumerator.cs
- DefaultDiscoveryService.cs
- ImageButton.cs
- CalendarDay.cs
- ExtensionFile.cs
- XmlDataSourceView.cs
- BitmapEffectGeneralTransform.cs
- InternalTransaction.cs
- DefaultTextStoreTextComposition.cs
- MessageVersionConverter.cs
- StrokeNodeEnumerator.cs
- StreamingContext.cs
- CollectionDataContractAttribute.cs
- CompilerTypeWithParams.cs
- Int32Storage.cs
- HostedHttpTransportManager.cs
- OleDbError.cs
- SchemaCollectionPreprocessor.cs
- AlternateView.cs
- XsdBuildProvider.cs
- Formatter.cs
- XmlAttributeProperties.cs
- assemblycache.cs
- ImmutablePropertyDescriptorGridEntry.cs
- SettingsPropertyValueCollection.cs
- HtmlCommandAdapter.cs
- WhereQueryOperator.cs
- SecurityTokenSpecification.cs
- TargetInvocationException.cs
- CodeAttributeArgumentCollection.cs
- EntityContainer.cs
- TraceFilter.cs
- DispatcherEventArgs.cs
- Transform3DGroup.cs
- Nullable.cs
- ConstraintStruct.cs
- FirstMatchCodeGroup.cs
- SettingsSection.cs
- Constraint.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- SQLDouble.cs
- FormViewPageEventArgs.cs
- EntityDataSourceChangedEventArgs.cs
- MessageQueuePermission.cs
- SslStreamSecurityUpgradeProvider.cs
- ScrollViewerAutomationPeer.cs
- XmlRawWriter.cs
- HwndMouseInputProvider.cs
- XmlReflectionMember.cs
- CustomCredentialPolicy.cs
- WindowsFormsHost.cs
- TextTreeText.cs
- ProcessThreadCollection.cs
- FormViewRow.cs
- FormatException.cs
- PassportAuthenticationModule.cs
- EditorBrowsableAttribute.cs
- InkCanvasSelectionAdorner.cs
- ListBoxAutomationPeer.cs
- CompensationDesigner.cs
- FixedSOMElement.cs
- Schema.cs
- ClipboardData.cs
- OleDbErrorCollection.cs
- ResourceDisplayNameAttribute.cs
- EntityContainerAssociationSet.cs
- ContentTextAutomationPeer.cs
- SafeRightsManagementSessionHandle.cs
- TriggerCollection.cs