Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / Shared / MS / Internal / Generated / AlignmentYValidation.cs / 1 / AlignmentYValidation.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 IsAlignmentYValid(object valueObject) { AlignmentY value = (AlignmentY) valueObject; return (value == AlignmentY.Top) || (value == AlignmentY.Center) || (value == AlignmentY.Bottom); } } } // 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 IsAlignmentYValid(object valueObject) { AlignmentY value = (AlignmentY) valueObject; return (value == AlignmentY.Top) || (value == AlignmentY.Center) || (value == AlignmentY.Bottom); } } } // 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
- TypeDefinition.cs
- X509DefaultServiceCertificateElement.cs
- ZipPackage.cs
- PagesChangedEventArgs.cs
- IpcPort.cs
- ChangePassword.cs
- PeerNearMe.cs
- TextRangeEditTables.cs
- EventToken.cs
- FileDialogCustomPlace.cs
- ClientBuildManager.cs
- ClonableStack.cs
- WindowsFormsLinkLabel.cs
- Hyperlink.cs
- XmlCharCheckingReader.cs
- NetTcpSection.cs
- HwndTarget.cs
- PassportAuthentication.cs
- MsmqPoisonMessageException.cs
- OracleDataReader.cs
- OutputCacheModule.cs
- MimeTypeAttribute.cs
- EdmMember.cs
- XmlNode.cs
- ObjectQuery.cs
- MimePart.cs
- IdentityNotMappedException.cs
- PointCollectionValueSerializer.cs
- TemplateXamlParser.cs
- ContractsBCL.cs
- ChannelBase.cs
- GlyphShapingProperties.cs
- Profiler.cs
- OracleFactory.cs
- QilUnary.cs
- DeviceSpecific.cs
- IncrementalCompileAnalyzer.cs
- AdPostCacheSubstitution.cs
- EntityObject.cs
- OrthographicCamera.cs
- DescendentsWalker.cs
- DataGridLinkButton.cs
- SecurityIdentifierElementCollection.cs
- _IPv4Address.cs
- BrowserCapabilitiesCodeGenerator.cs
- FormatterConverter.cs
- RIPEMD160Managed.cs
- RegisteredExpandoAttribute.cs
- Item.cs
- bindurihelper.cs
- FactoryGenerator.cs
- NamespaceDecl.cs
- MachineSettingsSection.cs
- KnownBoxes.cs
- clipboard.cs
- LineInfo.cs
- SvcMapFileSerializer.cs
- AppDomainUnloadedException.cs
- comcontractssection.cs
- ProxyWebPart.cs
- SpellerInterop.cs
- TrackingMemoryStream.cs
- TrustManagerPromptUI.cs
- NameSpaceEvent.cs
- SqlReferenceCollection.cs
- XslTransform.cs
- Typography.cs
- HtmlElement.cs
- OperatorExpressions.cs
- DataListItem.cs
- _RequestLifetimeSetter.cs
- StringComparer.cs
- BooleanExpr.cs
- Transform3D.cs
- FatalException.cs
- LoginCancelEventArgs.cs
- RelationshipEnd.cs
- TextContainerHelper.cs
- AutomationAttributeInfo.cs
- TimeZone.cs
- UserNamePasswordValidationMode.cs
- ToolStripDropTargetManager.cs
- ProcessHostConfigUtils.cs
- ModuleConfigurationInfo.cs
- VectorConverter.cs
- AssociationEndMember.cs
- RangeValueProviderWrapper.cs
- PbrsForward.cs
- RuleSettings.cs
- UniqueIdentifierService.cs
- CheckBoxRenderer.cs
- HyperLink.cs
- TreeView.cs
- NullReferenceException.cs
- TextBoxDesigner.cs
- ErrorWrapper.cs
- DataRowView.cs
- CodeMethodReturnStatement.cs
- AmbientValueAttribute.cs
- CoreSwitches.cs