Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / Shared / MS / Internal / Generated / RotationValidation.cs / 1 / RotationValidation.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.Imaging { 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 IsRotationValid(object valueObject) { Rotation value = (Rotation) valueObject; return (value == Rotation.Rotate0) || (value == Rotation.Rotate90) || (value == Rotation.Rotate180) || (value == Rotation.Rotate270); } } } // 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.Imaging { 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 IsRotationValid(object valueObject) { Rotation value = (Rotation) valueObject; return (value == Rotation.Rotate0) || (value == Rotation.Rotate90) || (value == Rotation.Rotate180) || (value == Rotation.Rotate270); } } } // 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
- HttpContextServiceHost.cs
- SplayTreeNode.cs
- OleDbSchemaGuid.cs
- ScriptResourceDefinition.cs
- SmiConnection.cs
- DnsPermission.cs
- AlphabeticalEnumConverter.cs
- DefaultValueMapping.cs
- BitmapSourceSafeMILHandle.cs
- FrameworkElementFactory.cs
- SymmetricAlgorithm.cs
- ImageAttributes.cs
- DatatypeImplementation.cs
- SpAudioStreamWrapper.cs
- KeyBinding.cs
- ViewLoader.cs
- QEncodedStream.cs
- ObjectPersistData.cs
- XComponentModel.cs
- OracleNumber.cs
- ImageMapEventArgs.cs
- TextSelection.cs
- HttpRawResponse.cs
- CFStream.cs
- SecurityToken.cs
- FormsAuthenticationCredentials.cs
- SecurityManager.cs
- TerminateDesigner.cs
- _NetworkingPerfCounters.cs
- HtmlFormWrapper.cs
- SerializationFieldInfo.cs
- LinkDesigner.cs
- TrustSection.cs
- TranslateTransform3D.cs
- DataServiceClientException.cs
- QueryTask.cs
- SqlCacheDependency.cs
- TableLayoutPanelDesigner.cs
- SoapExtensionTypeElementCollection.cs
- PanelDesigner.cs
- WizardSideBarListControlItem.cs
- SiteMapNodeItemEventArgs.cs
- SystemMulticastIPAddressInformation.cs
- BezierSegment.cs
- DispatcherSynchronizationContext.cs
- SerialPort.cs
- InstanceCompleteException.cs
- HttpResponseInternalBase.cs
- ObjectViewQueryResultData.cs
- Wizard.cs
- PassportAuthenticationEventArgs.cs
- ClientSettingsSection.cs
- ContainerActivationHelper.cs
- BevelBitmapEffect.cs
- SmiConnection.cs
- NumberAction.cs
- CharUnicodeInfo.cs
- BamlLocalizationDictionary.cs
- ChangeInterceptorAttribute.cs
- QilValidationVisitor.cs
- SignedInfo.cs
- Latin1Encoding.cs
- GeometryCollection.cs
- AsymmetricSignatureDeformatter.cs
- XmlAttributeOverrides.cs
- XPathNavigatorKeyComparer.cs
- SiteMap.cs
- SocketStream.cs
- SafeEventLogReadHandle.cs
- HttpCacheVaryByContentEncodings.cs
- MetaDataInfo.cs
- columnmapkeybuilder.cs
- CompoundFileReference.cs
- XmlCharCheckingWriter.cs
- ScrollEvent.cs
- WebPartRestoreVerb.cs
- ComponentFactoryHelpers.cs
- VisualBasicValue.cs
- CommentEmitter.cs
- ChainOfResponsibility.cs
- Int32Storage.cs
- RawStylusSystemGestureInputReport.cs
- ManipulationStartedEventArgs.cs
- ReflectionUtil.cs
- BuildProvider.cs
- FormattedTextSymbols.cs
- WebPartConnectionsCancelVerb.cs
- RadioButton.cs
- SortDescriptionCollection.cs
- WorkingDirectoryEditor.cs
- Rfc2898DeriveBytes.cs
- WorkflowViewElement.cs
- KoreanLunisolarCalendar.cs
- XmlStringTable.cs
- ModelItemKeyValuePair.cs
- MaterialGroup.cs
- NestPullup.cs
- XMLSyntaxException.cs
- XmlStringTable.cs
- Debugger.cs