Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- EmptyEnumerable.cs
- ListenerConnectionDemuxer.cs
- View.cs
- ArithmeticException.cs
- Int32RectConverter.cs
- SqlIdentifier.cs
- BitmapDownload.cs
- TaiwanLunisolarCalendar.cs
- localization.cs
- XmlWellformedWriter.cs
- AsynchronousChannel.cs
- CustomAssemblyResolver.cs
- ListSortDescription.cs
- CollectionsUtil.cs
- DispatchWrapper.cs
- SessionPageStateSection.cs
- Rotation3D.cs
- SqlBuilder.cs
- RotateTransform.cs
- SerializationInfoEnumerator.cs
- RemotingHelper.cs
- ColorMatrix.cs
- SqlProviderManifest.cs
- SqlDataSourceSelectingEventArgs.cs
- Utils.cs
- IndexedGlyphRun.cs
- RSAOAEPKeyExchangeDeformatter.cs
- SqlProviderUtilities.cs
- TextTreeNode.cs
- MergeLocalizationDirectives.cs
- DrawingAttributesDefaultValueFactory.cs
- JpegBitmapDecoder.cs
- ArglessEventHandlerProxy.cs
- ILGen.cs
- ServiceSecurityAuditBehavior.cs
- EmptyImpersonationContext.cs
- HtmlGenericControl.cs
- JumpItem.cs
- BamlLocalizableResource.cs
- Base64Stream.cs
- EditCommandColumn.cs
- TableAdapterManagerHelper.cs
- PropertyDescriptors.cs
- Light.cs
- IPAddressCollection.cs
- DictionaryBase.cs
- Stream.cs
- Internal.cs
- HostedNamedPipeTransportManager.cs
- TextTabProperties.cs
- CollectionChangeEventArgs.cs
- CodeArrayIndexerExpression.cs
- ValueConversionAttribute.cs
- Compiler.cs
- DataGridViewColumnCollection.cs
- WizardDesigner.cs
- WebZone.cs
- BaseDataBoundControl.cs
- ConfigurationStrings.cs
- ActivationArguments.cs
- DataPagerField.cs
- ExpressionStringBuilder.cs
- RemoteWebConfigurationHost.cs
- CodeTypeReferenceExpression.cs
- PointConverter.cs
- ObjectDataSourceChooseMethodsPanel.cs
- InfocardExtendedInformationCollection.cs
- ThemeDirectoryCompiler.cs
- WindowManager.cs
- SystemResourceKey.cs
- RangeValidator.cs
- DependencyObjectPropertyDescriptor.cs
- DbConnectionHelper.cs
- SHA384.cs
- GeneralTransformCollection.cs
- CultureMapper.cs
- SequentialUshortCollection.cs
- DocumentViewer.cs
- Walker.cs
- NamedPermissionSet.cs
- OutputWindow.cs
- TreeViewDataItemAutomationPeer.cs
- CompatibleComparer.cs
- SimpleHandlerFactory.cs
- RedistVersionInfo.cs
- RectKeyFrameCollection.cs
- MappedMetaModel.cs
- PostBackTrigger.cs
- ContainerUtilities.cs
- XmlSchemaInfo.cs
- AliasedSlot.cs
- Int64KeyFrameCollection.cs
- SectionInformation.cs
- SatelliteContractVersionAttribute.cs
- ProcessHostServerConfig.cs
- PropertySourceInfo.cs
- IItemContainerGenerator.cs
- XmlnsCompatibleWithAttribute.cs
- FontDifferentiator.cs
- Base64Decoder.cs