Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- PhonemeEventArgs.cs
- CaseKeyBox.ViewModel.cs
- SqlRecordBuffer.cs
- HandleScope.cs
- SortableBindingList.cs
- MissingMemberException.cs
- SchemaObjectWriter.cs
- BitmapSizeOptions.cs
- ToolboxItemImageConverter.cs
- shaperfactoryquerycacheentry.cs
- DataGridViewAccessibleObject.cs
- NetSectionGroup.cs
- NamespaceInfo.cs
- URLMembershipCondition.cs
- OutputCacheProfile.cs
- SQLSingle.cs
- CompilerResults.cs
- RegexParser.cs
- XsltSettings.cs
- InkCanvasSelectionAdorner.cs
- InputProcessorProfiles.cs
- ForwardPositionQuery.cs
- XmlSchemaDatatype.cs
- MenuBindingsEditorForm.cs
- BindingListCollectionView.cs
- CorrelationKey.cs
- versioninfo.cs
- CompositeActivityCodeGenerator.cs
- SafeReadContext.cs
- SymbolEqualComparer.cs
- PriorityChain.cs
- ObjRef.cs
- OperatingSystemVersionCheck.cs
- ExternalException.cs
- RequestCacheEntry.cs
- HybridDictionary.cs
- StringDictionary.cs
- CustomCategoryAttribute.cs
- SQLUtility.cs
- TabletDeviceInfo.cs
- TopClause.cs
- ToggleButton.cs
- ContextBase.cs
- ParseNumbers.cs
- StringFreezingAttribute.cs
- MessageDecoder.cs
- Exceptions.cs
- ScrollableControl.cs
- NavigatingCancelEventArgs.cs
- ConfigurationLoader.cs
- BasicCellRelation.cs
- ExtentJoinTreeNode.cs
- OracleParameter.cs
- BitConverter.cs
- XLinq.cs
- ExpandCollapseProviderWrapper.cs
- OdbcError.cs
- Geometry3D.cs
- FileUpload.cs
- SafeNativeMemoryHandle.cs
- ScopelessEnumAttribute.cs
- SapiAttributeParser.cs
- UIElement3D.cs
- PropertyReferenceExtension.cs
- PagesChangedEventArgs.cs
- ApplicationDirectoryMembershipCondition.cs
- SerializationObjectManager.cs
- WorkflowDefinitionDispenser.cs
- XmlNamespaceDeclarationsAttribute.cs
- EventEntry.cs
- CreatingCookieEventArgs.cs
- Fonts.cs
- RoutedCommand.cs
- SchemaConstraints.cs
- DesignerVerb.cs
- WizardSideBarListControlItemEventArgs.cs
- TripleDESCryptoServiceProvider.cs
- cookieexception.cs
- TransactionProtocolConverter.cs
- DependencyPropertyDescriptor.cs
- JpegBitmapEncoder.cs
- ThreadNeutralSemaphore.cs
- ColumnWidthChangedEvent.cs
- XmlEventCache.cs
- StaticTextPointer.cs
- SQLMoneyStorage.cs
- ResourceExpression.cs
- EventsTab.cs
- SHA384Managed.cs
- RevocationPoint.cs
- SystemIcmpV6Statistics.cs
- IncrementalHitTester.cs
- UrlMappingsSection.cs
- SqlGenerator.cs
- Set.cs
- StringUtil.cs
- WebPartMovingEventArgs.cs
- SingleConverter.cs
- FrameworkPropertyMetadata.cs
- CustomTypeDescriptor.cs