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
- PropertyTab.cs
- NumberFormatInfo.cs
- HttpEncoderUtility.cs
- UnicodeEncoding.cs
- MediaPlayer.cs
- ToolStripDropDownClosedEventArgs.cs
- FindCriteria11.cs
- ButtonDesigner.cs
- CssClassPropertyAttribute.cs
- XmlSerializationGeneratedCode.cs
- GridItem.cs
- PropertyState.cs
- CrossContextChannel.cs
- InvalidateEvent.cs
- Renderer.cs
- XmlSchemaAnnotation.cs
- UnsafePeerToPeerMethods.cs
- OverlappedAsyncResult.cs
- TreeNode.cs
- ChildDocumentBlock.cs
- EntityDataSourceValidationException.cs
- AssociatedControlConverter.cs
- BStrWrapper.cs
- DataServiceSaveChangesEventArgs.cs
- GridViewCommandEventArgs.cs
- PointHitTestResult.cs
- DataBoundControlDesigner.cs
- SqlProcedureAttribute.cs
- TimeSpanMinutesConverter.cs
- HwndSourceKeyboardInputSite.cs
- assemblycache.cs
- XmlSerializerAssemblyAttribute.cs
- CacheDependency.cs
- PlainXmlWriter.cs
- SQLBinaryStorage.cs
- WebPartDisplayModeCancelEventArgs.cs
- X509Certificate2Collection.cs
- SelfIssuedSamlTokenFactory.cs
- FaultHandlingFilter.cs
- GestureRecognitionResult.cs
- ClientSponsor.cs
- NumericExpr.cs
- PostBackTrigger.cs
- QueryAsyncResult.cs
- EntityRecordInfo.cs
- HyperLinkField.cs
- cookiecollection.cs
- WSHttpBindingBaseElement.cs
- DesignerDataView.cs
- CheckBox.cs
- FixedMaxHeap.cs
- SearchForVirtualItemEventArgs.cs
- PatternMatcher.cs
- HashHelper.cs
- AddValidationError.cs
- NamespaceList.cs
- EmbeddedMailObject.cs
- ReliabilityContractAttribute.cs
- diagnosticsswitches.cs
- SystemInfo.cs
- RowParagraph.cs
- CqlLexer.cs
- AggregateNode.cs
- Expander.cs
- Package.cs
- EpmTargetPathSegment.cs
- WorkItem.cs
- OciHandle.cs
- ListMarkerSourceInfo.cs
- RadioButton.cs
- DelegatingStream.cs
- WebException.cs
- XPathSingletonIterator.cs
- LicFileLicenseProvider.cs
- ObjectListTitleAttribute.cs
- Int16Animation.cs
- TraceLog.cs
- Validator.cs
- BinHexEncoding.cs
- FormsAuthenticationModule.cs
- CodeGenerator.cs
- URLIdentityPermission.cs
- DrawingContextWalker.cs
- Compiler.cs
- DropDownList.cs
- HierarchicalDataBoundControl.cs
- BuildManager.cs
- ResourcesBuildProvider.cs
- WrappedOptions.cs
- Decoder.cs
- CompositeCollection.cs
- ThicknessAnimationBase.cs
- IdentityReference.cs
- ActivitySurrogateSelector.cs
- XslAstAnalyzer.cs
- ILGenerator.cs
- IisTraceWebEventProvider.cs
- OleDbRowUpdatedEvent.cs
- TextInfo.cs
- RegexBoyerMoore.cs