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
- JapaneseCalendar.cs
- Assert.cs
- TextSimpleMarkerProperties.cs
- XmlComplianceUtil.cs
- EventBookmark.cs
- Point3DCollection.cs
- CursorConverter.cs
- ContractReference.cs
- ReversePositionQuery.cs
- OrderingQueryOperator.cs
- SelectionPatternIdentifiers.cs
- OutputWindow.cs
- AccessibilityHelperForVista.cs
- DesignTimeTemplateParser.cs
- TableSectionStyle.cs
- mansign.cs
- InternalDuplexChannelListener.cs
- CertificateReferenceElement.cs
- InheritedPropertyChangedEventArgs.cs
- HelpInfo.cs
- ChangeBlockUndoRecord.cs
- ThicknessKeyFrameCollection.cs
- SafeMarshalContext.cs
- TableRowCollection.cs
- WebWorkflowRole.cs
- MultiTrigger.cs
- entityreference_tresulttype.cs
- ServicePointManager.cs
- FontSourceCollection.cs
- FlowLayoutPanel.cs
- IteratorDescriptor.cs
- JsonXmlDataContract.cs
- SoapTypeAttribute.cs
- DataSvcMapFileSerializer.cs
- CompilerParameters.cs
- HttpListener.cs
- WebPartVerbCollection.cs
- SyndicationDeserializer.cs
- TerminatingOperationBehavior.cs
- ClientScriptManager.cs
- UpdatePanelTriggerCollection.cs
- PackageRelationshipSelector.cs
- ScopelessEnumAttribute.cs
- StructuredTypeEmitter.cs
- Semaphore.cs
- Connector.xaml.cs
- AlternateView.cs
- FileDialog.cs
- StyleBamlRecordReader.cs
- LoginUtil.cs
- DataList.cs
- StandardTransformFactory.cs
- DbDataRecord.cs
- XomlCompilerResults.cs
- SmtpNtlmAuthenticationModule.cs
- XmlAttributes.cs
- PropertyNames.cs
- ProgressPage.cs
- BitmapEffectInput.cs
- JoinElimination.cs
- EventRecord.cs
- DeleteStoreRequest.cs
- FixedStringLookup.cs
- SurrogateChar.cs
- Bitmap.cs
- DataServices.cs
- ManualResetEventSlim.cs
- ErrorEventArgs.cs
- InheritanceContextChangedEventManager.cs
- WebEventTraceProvider.cs
- DbConnectionPoolOptions.cs
- TextParagraphCache.cs
- CalendarDay.cs
- WebControlsSection.cs
- MatcherBuilder.cs
- InOutArgumentConverter.cs
- FragmentNavigationEventArgs.cs
- DoubleAnimationUsingPath.cs
- EntityContainerRelationshipSet.cs
- MsmqInputSessionChannelListener.cs
- DateTimeStorage.cs
- PointCollection.cs
- Size.cs
- Compiler.cs
- DynamicILGenerator.cs
- StoreItemCollection.Loader.cs
- StateBag.cs
- RecognizerInfo.cs
- NativeRecognizer.cs
- OleDbInfoMessageEvent.cs
- nulltextnavigator.cs
- DesignTimeParseData.cs
- NavigationProgressEventArgs.cs
- ExtenderControl.cs
- TemplatedAdorner.cs
- XmlQueryOutput.cs
- Soap.cs
- SynchronizationValidator.cs
- StreamingContext.cs
- Rect3D.cs