Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Shared / MS / Internal / Generated / AlignmentYValidation.cs / 1305600 / 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
- FaultReasonText.cs
- SplayTreeNode.cs
- MetaData.cs
- OdbcRowUpdatingEvent.cs
- RtfToXamlLexer.cs
- PointKeyFrameCollection.cs
- ImportedPolicyConversionContext.cs
- LayoutUtils.cs
- ComboBoxRenderer.cs
- UnsafeNativeMethods.cs
- peersecuritysettings.cs
- TreeView.cs
- ComponentGuaranteesAttribute.cs
- DependencyPropertyValueSerializer.cs
- PersonalizableTypeEntry.cs
- ComponentConverter.cs
- KeyInterop.cs
- SoapSchemaImporter.cs
- AssociationType.cs
- File.cs
- RedBlackList.cs
- DecimalConverter.cs
- DataMisalignedException.cs
- Binding.cs
- mda.cs
- CodeDomConfigurationHandler.cs
- Highlights.cs
- KeyInterop.cs
- TagMapCollection.cs
- CacheSection.cs
- NativeMethods.cs
- ThreadStateException.cs
- HttpClientCertificate.cs
- WindowsFormsSectionHandler.cs
- RestClientProxyHandler.cs
- CommonRemoteMemoryBlock.cs
- UniformGrid.cs
- _NtlmClient.cs
- ComboBoxRenderer.cs
- DataGridViewControlCollection.cs
- TableLayoutRowStyleCollection.cs
- HtmlImage.cs
- ContentHostHelper.cs
- NamespaceInfo.cs
- ChannelAcceptor.cs
- EventManager.cs
- SerializationFieldInfo.cs
- RoutingSection.cs
- GlyphRunDrawing.cs
- UIElement3DAutomationPeer.cs
- XpsFixedDocumentSequenceReaderWriter.cs
- ComplexType.cs
- CalendarDay.cs
- EntityTypeBase.cs
- LongPath.cs
- ComponentChangingEvent.cs
- CroppedBitmap.cs
- UserPreferenceChangedEventArgs.cs
- EdmComplexPropertyAttribute.cs
- Message.cs
- IIS7UserPrincipal.cs
- PriorityBindingExpression.cs
- RuleInfoComparer.cs
- CacheSection.cs
- ResourceAttributes.cs
- BCryptSafeHandles.cs
- EntityClientCacheEntry.cs
- NonClientArea.cs
- UIInitializationException.cs
- XsdDuration.cs
- DataGridItemCollection.cs
- DocumentOutline.cs
- EqualityComparer.cs
- UserControl.cs
- RequestResizeEvent.cs
- UnionExpr.cs
- CodeIdentifier.cs
- CodeTypeDelegate.cs
- PointHitTestParameters.cs
- MaskedTextProvider.cs
- DPTypeDescriptorContext.cs
- NavigationProperty.cs
- ProcessHostFactoryHelper.cs
- Canvas.cs
- BindingListCollectionView.cs
- PaintEvent.cs
- COSERVERINFO.cs
- ReferenceConverter.cs
- InstanceDescriptor.cs
- ECDiffieHellmanCng.cs
- ChannelDispatcher.cs
- SelectionRange.cs
- xsdvalidator.cs
- KnownColorTable.cs
- UserControlBuildProvider.cs
- HostSecurityManager.cs
- MetadataHelper.cs
- LocalizabilityAttribute.cs
- WorkflowMarkupSerializationException.cs
- WebPartZoneBase.cs