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
- RemotingException.cs
- ListSortDescription.cs
- SQLDateTime.cs
- PolyLineSegment.cs
- ScriptIgnoreAttribute.cs
- CompatibleComparer.cs
- ConstraintCollection.cs
- InheritedPropertyChangedEventArgs.cs
- CallTemplateAction.cs
- VisualCollection.cs
- GZipStream.cs
- HitTestWithPointDrawingContextWalker.cs
- DrawTreeNodeEventArgs.cs
- TableLayoutStyleCollection.cs
- TemplatePropertyEntry.cs
- FormsAuthentication.cs
- DoubleLink.cs
- TwoPhaseCommit.cs
- IDataContractSurrogate.cs
- __ComObject.cs
- SafeRightsManagementSessionHandle.cs
- AudioFormatConverter.cs
- TextBox.cs
- WebSysDescriptionAttribute.cs
- SQLDoubleStorage.cs
- PropertiesTab.cs
- GroupJoinQueryOperator.cs
- ACL.cs
- SqlVersion.cs
- mediaeventargs.cs
- FlowNode.cs
- WebControlAdapter.cs
- DynamicPropertyHolder.cs
- DataException.cs
- DataListCommandEventArgs.cs
- ObjectDisposedException.cs
- SimpleApplicationHost.cs
- FrugalMap.cs
- TimeoutTimer.cs
- EventHandlersStore.cs
- SQLBoolean.cs
- Handle.cs
- ParseHttpDate.cs
- GeneralTransform3DGroup.cs
- TemplateControlCodeDomTreeGenerator.cs
- QueryCacheKey.cs
- RawTextInputReport.cs
- ClientScriptItemCollection.cs
- IisTraceListener.cs
- PropertyChangeTracker.cs
- ColumnTypeConverter.cs
- StorageEntityContainerMapping.cs
- OneOfScalarConst.cs
- WindowsFormsLinkLabel.cs
- XsdValidatingReader.cs
- XmlSchemaType.cs
- SqlNode.cs
- BrowserDefinition.cs
- TimeSpanStorage.cs
- NamedPipeConnectionPoolSettings.cs
- HtmlWindowCollection.cs
- CheckBox.cs
- ReflectPropertyDescriptor.cs
- GradientStop.cs
- TagPrefixCollection.cs
- MetricEntry.cs
- DataGridViewColumnEventArgs.cs
- MyContact.cs
- DataRowComparer.cs
- SymmetricKeyWrap.cs
- FloaterParagraph.cs
- TdsParserStateObject.cs
- EncoderBestFitFallback.cs
- X509Utils.cs
- XPSSignatureDefinition.cs
- ContextStaticAttribute.cs
- ImageField.cs
- Qualifier.cs
- MissingManifestResourceException.cs
- ExpressionDumper.cs
- SizeIndependentAnimationStorage.cs
- MatrixTransform3D.cs
- DataObject.cs
- Keyboard.cs
- RunWorkerCompletedEventArgs.cs
- Properties.cs
- NameNode.cs
- Vector3DValueSerializer.cs
- XmlNamedNodeMap.cs
- IPAddress.cs
- TableStyle.cs
- StoreItemCollection.Loader.cs
- SelectedGridItemChangedEvent.cs
- DocumentCollection.cs
- ContentElement.cs
- SingleSelectRootGridEntry.cs
- TableLayoutSettings.cs
- EntityParameterCollection.cs
- XsltSettings.cs
- AssemblyInfo.cs