Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- ListControl.cs
- ThrowHelper.cs
- mansign.cs
- SolidBrush.cs
- EventLogEntry.cs
- SafePEFileHandle.cs
- TraceFilter.cs
- QueryParameter.cs
- DataPagerFieldItem.cs
- GroupBox.cs
- RelatedView.cs
- ContextDataSource.cs
- AlternateView.cs
- XmlAttributeAttribute.cs
- EditCommandColumn.cs
- RightsManagementPermission.cs
- WaitHandleCannotBeOpenedException.cs
- Highlights.cs
- SHA1CryptoServiceProvider.cs
- ThreadNeutralSemaphore.cs
- streamingZipPartStream.cs
- SafeSystemMetrics.cs
- RIPEMD160Managed.cs
- SimpleBitVector32.cs
- ContentFilePart.cs
- IPAddressCollection.cs
- BoolLiteral.cs
- RijndaelManagedTransform.cs
- AsmxEndpointPickerExtension.cs
- DragStartedEventArgs.cs
- WorkflowApplicationAbortedException.cs
- DetailsViewDeletedEventArgs.cs
- GroupQuery.cs
- documentsequencetextcontainer.cs
- AudioLevelUpdatedEventArgs.cs
- XPathNavigator.cs
- GeometryGroup.cs
- CompilerLocalReference.cs
- StreamWithDictionary.cs
- CriticalHandle.cs
- CalendarData.cs
- OdbcFactory.cs
- SchemaDeclBase.cs
- RoutedCommand.cs
- PeerChannelFactory.cs
- MatcherBuilder.cs
- ProofTokenCryptoHandle.cs
- DllHostInitializer.cs
- TextMetrics.cs
- PriorityItem.cs
- Window.cs
- StorageBasedPackageProperties.cs
- UserPreferenceChangingEventArgs.cs
- RuntimeResourceSet.cs
- ComponentCollection.cs
- GroupDescription.cs
- BindingManagerDataErrorEventArgs.cs
- SqlRewriteScalarSubqueries.cs
- PopupRootAutomationPeer.cs
- WebResourceAttribute.cs
- Collection.cs
- dataSvcMapFileLoader.cs
- Soap12ProtocolReflector.cs
- UpdateCompiler.cs
- StorageRoot.cs
- Socket.cs
- UrlPath.cs
- CollectionViewProxy.cs
- LocalizabilityAttribute.cs
- XslTransform.cs
- OutputCacheProfileCollection.cs
- WebErrorHandler.cs
- Rotation3DAnimationUsingKeyFrames.cs
- ElementAction.cs
- ArrayEditor.cs
- PanelStyle.cs
- CodeDelegateCreateExpression.cs
- DefaultValueAttribute.cs
- BrowserCapabilitiesFactory.cs
- RenderOptions.cs
- DesignBindingPicker.cs
- ProtocolsSection.cs
- HostVisual.cs
- PanelStyle.cs
- SourceFileBuildProvider.cs
- ModuleBuilder.cs
- ScrollableControlDesigner.cs
- SemanticKeyElement.cs
- HMAC.cs
- ExpandedProjectionNode.cs
- CopyAttributesAction.cs
- IUnknownConstantAttribute.cs
- Freezable.cs
- WarningException.cs
- DatePickerAutomationPeer.cs
- MetricEntry.cs
- BitmapEffectDrawingContent.cs
- DropShadowBitmapEffect.cs
- autovalidator.cs
- SevenBitStream.cs