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
- _FtpControlStream.cs
- XmlDocumentFragment.cs
- MergePropertyDescriptor.cs
- DataServiceEntityAttribute.cs
- NotifyInputEventArgs.cs
- entityreference_tresulttype.cs
- HtmlElementCollection.cs
- CombinedGeometry.cs
- NestPullup.cs
- FrameworkReadOnlyPropertyMetadata.cs
- Underline.cs
- Utils.cs
- BaseTemplateParser.cs
- ITreeGenerator.cs
- GroupQuery.cs
- BaseParser.cs
- ObjectDataSourceView.cs
- _RequestCacheProtocol.cs
- WindowsListViewGroupHelper.cs
- GroupByQueryOperator.cs
- RelatedImageListAttribute.cs
- DependencyObjectProvider.cs
- FlowDecisionDesigner.xaml.cs
- OperationContextScope.cs
- GridViewHeaderRowPresenterAutomationPeer.cs
- SqlDelegatedTransaction.cs
- SourceFilter.cs
- DynamicMetaObjectBinder.cs
- ChannelServices.cs
- DataColumnMapping.cs
- PermissionListSet.cs
- AdornerPresentationContext.cs
- EntityDataSourceChangedEventArgs.cs
- WebPartVerbCollection.cs
- SpotLight.cs
- MachineKeyConverter.cs
- TraceHandler.cs
- IRCollection.cs
- ProvidePropertyAttribute.cs
- AudienceUriMode.cs
- AsymmetricKeyExchangeFormatter.cs
- UiaCoreProviderApi.cs
- SystemIcmpV4Statistics.cs
- SmiRecordBuffer.cs
- ImageAttributes.cs
- ByValueEqualityComparer.cs
- HMACSHA384.cs
- UnmanagedMemoryAccessor.cs
- CallContext.cs
- AssemblyLoader.cs
- ToggleButtonAutomationPeer.cs
- MouseButtonEventArgs.cs
- ConfigurationValidatorAttribute.cs
- PolygonHotSpot.cs
- UnsafeNativeMethods.cs
- ProgressBarHighlightConverter.cs
- DelegateBodyWriter.cs
- OLEDB_Util.cs
- PerformanceCounterCategory.cs
- ScopelessEnumAttribute.cs
- RadioButtonBaseAdapter.cs
- Helpers.cs
- DesignRelationCollection.cs
- ObjectPersistData.cs
- WebBaseEventKeyComparer.cs
- InternalDuplexBindingElement.cs
- CorrelationValidator.cs
- HyperLink.cs
- EntityDesignerBuildProvider.cs
- TableStyle.cs
- GridView.cs
- SystemSounds.cs
- ShaperBuffers.cs
- HexParser.cs
- CopyCodeAction.cs
- StylusTip.cs
- SliderAutomationPeer.cs
- UInt32Converter.cs
- Grammar.cs
- ProbeMatchesMessage11.cs
- RotationValidation.cs
- WebPartConnectionsConnectVerb.cs
- Convert.cs
- ByteAnimationUsingKeyFrames.cs
- ElapsedEventArgs.cs
- VersionedStreamOwner.cs
- StateFinalizationActivity.cs
- TableLayoutSettingsTypeConverter.cs
- SendMailErrorEventArgs.cs
- WebPartAddingEventArgs.cs
- XamlSerializationHelper.cs
- ValidationErrorEventArgs.cs
- ValueUtilsSmi.cs
- wmiprovider.cs
- TheQuery.cs
- BitmapEffectGeneralTransform.cs
- PageThemeCodeDomTreeGenerator.cs
- OuterGlowBitmapEffect.cs
- CategoryAttribute.cs
- ScriptControlManager.cs