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
- HttpGetProtocolImporter.cs
- DocumentApplication.cs
- AppDomainAttributes.cs
- ICspAsymmetricAlgorithm.cs
- SvcMapFileLoader.cs
- ObjectDataSourceDisposingEventArgs.cs
- QilVisitor.cs
- RepeaterItemEventArgs.cs
- AssemblyBuilder.cs
- StringTraceRecord.cs
- SignatureToken.cs
- ServicePointManager.cs
- EndpointIdentityExtension.cs
- IntranetCredentialPolicy.cs
- StringReader.cs
- QualificationDataAttribute.cs
- DoubleCollectionConverter.cs
- VariantWrapper.cs
- DocumentReference.cs
- EventLogException.cs
- HttpRequest.cs
- ELinqQueryState.cs
- FormsAuthenticationCredentials.cs
- VisualStyleRenderer.cs
- BaseCollection.cs
- PermissionSet.cs
- DynamicMethod.cs
- ScheduleChanges.cs
- XPathDescendantIterator.cs
- EntityReference.cs
- RootBrowserWindowAutomationPeer.cs
- FormViewPagerRow.cs
- ASCIIEncoding.cs
- Underline.cs
- odbcmetadatacollectionnames.cs
- EventLogEntry.cs
- QueryCacheEntry.cs
- InputScope.cs
- WebConfigurationFileMap.cs
- ScrollProperties.cs
- XmlIncludeAttribute.cs
- SchemaConstraints.cs
- IteratorFilter.cs
- GC.cs
- StartUpEventArgs.cs
- Clipboard.cs
- HtmlSelect.cs
- UIElementPropertyUndoUnit.cs
- LazyTextWriterCreator.cs
- XmlAttributeProperties.cs
- InvocationExpression.cs
- RuntimeCompatibilityAttribute.cs
- BoundingRectTracker.cs
- RawContentTypeMapper.cs
- FixedSOMPageElement.cs
- RichTextBoxDesigner.cs
- XpsDigitalSignature.cs
- MarshalByValueComponent.cs
- Profiler.cs
- SizeF.cs
- NumberFormatInfo.cs
- DBBindings.cs
- FreeFormDesigner.cs
- WebControlParameterProxy.cs
- SiteMembershipCondition.cs
- MsmqIntegrationInputChannel.cs
- Msec.cs
- ComPersistableTypeElement.cs
- storagemappingitemcollection.viewdictionary.cs
- ObjectItemNoOpAssemblyLoader.cs
- SettingsPropertyValueCollection.cs
- InlineCollection.cs
- Stack.cs
- PrintDocument.cs
- DetailsViewDeletedEventArgs.cs
- ValidationRuleCollection.cs
- CodeAttributeDeclaration.cs
- CatalogPartChrome.cs
- DynamicILGenerator.cs
- TreeViewImageGenerator.cs
- DisplayNameAttribute.cs
- RuntimeResourceSet.cs
- XmlSchemaComplexContentExtension.cs
- XmlDataLoader.cs
- StringSource.cs
- WebPartCatalogCloseVerb.cs
- XsdDuration.cs
- IsolatedStorageException.cs
- UpdateProgress.cs
- TreeView.cs
- EntityExpressionVisitor.cs
- ClientRolePrincipal.cs
- ProfileService.cs
- DataGridAutoFormat.cs
- BufferAllocator.cs
- TimelineClockCollection.cs
- HybridDictionary.cs
- SubclassTypeValidator.cs
- ScriptResourceAttribute.cs
- Rotation3DAnimationUsingKeyFrames.cs