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
- TransactionContextValidator.cs
- SignatureDescription.cs
- RadioButtonFlatAdapter.cs
- DataServiceProcessingPipelineEventArgs.cs
- InheritanceAttribute.cs
- Propagator.Evaluator.cs
- PeerApplicationLaunchInfo.cs
- ExceptionAggregator.cs
- HttpDictionary.cs
- ServiceDescription.cs
- BindingManagerDataErrorEventArgs.cs
- DataSourceView.cs
- InsufficientMemoryException.cs
- Soap.cs
- TraceProvider.cs
- QualifiedCellIdBoolean.cs
- PersonalizationState.cs
- Int32RectConverter.cs
- RuleElement.cs
- FontCacheUtil.cs
- ZipIORawDataFileBlock.cs
- DataGridViewSelectedRowCollection.cs
- FloatUtil.cs
- CopyEncoder.cs
- ResourceReferenceKeyNotFoundException.cs
- HttpException.cs
- ForEachAction.cs
- DiscoveryClientReferences.cs
- TextEmbeddedObject.cs
- FramingDecoders.cs
- TdsParserSessionPool.cs
- BooleanFacetDescriptionElement.cs
- HttpContextServiceHost.cs
- PeerCollaborationPermission.cs
- XmlComplianceUtil.cs
- DelegatedStream.cs
- SafePEFileHandle.cs
- ChannelDispatcherBase.cs
- Trace.cs
- RegistryExceptionHelper.cs
- SQLInt16.cs
- MimeMapping.cs
- BaseTransportHeaders.cs
- EnumValidator.cs
- ParameterRetriever.cs
- XmlStreamStore.cs
- DeflateStream.cs
- DataFormats.cs
- ObsoleteAttribute.cs
- FixedBufferAttribute.cs
- WebPartConnectionsConfigureVerb.cs
- DescendentsWalkerBase.cs
- TransformerTypeCollection.cs
- _Semaphore.cs
- DesignerAttributeInfo.cs
- UserControlCodeDomTreeGenerator.cs
- XmlSerializer.cs
- CollectionViewProxy.cs
- ImplicitInputBrush.cs
- BehaviorEditorPart.cs
- UncommonField.cs
- ImageField.cs
- RadioButtonRenderer.cs
- MultiPropertyDescriptorGridEntry.cs
- PersonalizationStateInfo.cs
- EntityContainerAssociationSetEnd.cs
- MultitargetUtil.cs
- StreamBodyWriter.cs
- XmlDataLoader.cs
- ContentDisposition.cs
- PeerObject.cs
- ListViewItemMouseHoverEvent.cs
- Timer.cs
- NetStream.cs
- AssemblyNameUtility.cs
- SizeAnimationBase.cs
- VisualBrush.cs
- SQLDecimal.cs
- AnnotationElement.cs
- ConfigDefinitionUpdates.cs
- TdsValueSetter.cs
- SqlFlattener.cs
- IconHelper.cs
- NodeLabelEditEvent.cs
- MetaTableHelper.cs
- AttributeData.cs
- CellQuery.cs
- WindowsListViewGroup.cs
- MailBnfHelper.cs
- ObjectStorage.cs
- ValidatorCompatibilityHelper.cs
- ConfigurationSettings.cs
- MessageSmuggler.cs
- _ConnectionGroup.cs
- Attributes.cs
- StringFreezingAttribute.cs
- Wrapper.cs
- ProcessHostMapPath.cs
- ParameterBuilder.cs
- AsyncOperationLifetimeManager.cs