Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- ScriptingAuthenticationServiceSection.cs
- MappingSource.cs
- Group.cs
- DbProviderServices.cs
- ToolboxComponentsCreatedEventArgs.cs
- Events.cs
- TableDetailsRow.cs
- UnsafeNativeMethods.cs
- Win32Interop.cs
- ToolStripSeparatorRenderEventArgs.cs
- StreamWriter.cs
- DataConnectionHelper.cs
- DescendentsWalkerBase.cs
- StateMachineHistory.cs
- CancellationScope.cs
- XmlSchemaAppInfo.cs
- Cloud.cs
- XmlDocumentFragment.cs
- OleServicesContext.cs
- GlobalProxySelection.cs
- Nullable.cs
- CollectionConverter.cs
- DodSequenceMerge.cs
- TargetControlTypeCache.cs
- ImageBrush.cs
- EdmConstants.cs
- ServiceProviders.cs
- MobileCapabilities.cs
- CookieHandler.cs
- updateconfighost.cs
- PropertyEmitterBase.cs
- ExpressionBindings.cs
- TypeDescriptor.cs
- messageonlyhwndwrapper.cs
- BindingEntityInfo.cs
- ListViewDesigner.cs
- NavigationPropertyEmitter.cs
- EnumValidator.cs
- JsonStringDataContract.cs
- Int16KeyFrameCollection.cs
- ConstraintManager.cs
- Msec.cs
- CachedFontFamily.cs
- CellRelation.cs
- SystemInfo.cs
- HtmlControlPersistable.cs
- OutputCacheSettings.cs
- DesignerPerfEventProvider.cs
- InitializerFacet.cs
- PartialToken.cs
- ContentWrapperAttribute.cs
- Header.cs
- SharedStatics.cs
- ColorAnimation.cs
- GPRECT.cs
- GPRECTF.cs
- XmlDocumentFieldSchema.cs
- FixedTextContainer.cs
- DifferencingCollection.cs
- WebPermission.cs
- Not.cs
- JsonStringDataContract.cs
- DateTimeFormatInfo.cs
- DataColumnMappingCollection.cs
- DLinqColumnProvider.cs
- DeflateStream.cs
- RadioButtonFlatAdapter.cs
- StaticSiteMapProvider.cs
- ArgumentNullException.cs
- InheritanceUI.cs
- HttpClientChannel.cs
- returneventsaver.cs
- SQLDateTime.cs
- OdbcCommandBuilder.cs
- DataSourceView.cs
- SqlDataSourceQueryEditorForm.cs
- LineInfo.cs
- XmlSchemaGroupRef.cs
- LinqDataSource.cs
- CfgParser.cs
- SqlBulkCopyColumnMappingCollection.cs
- ToolStripItem.cs
- DBConnectionString.cs
- CodeTypeDeclaration.cs
- ResourceManager.cs
- DigestTraceRecordHelper.cs
- Comparer.cs
- ToolStripPanelRenderEventArgs.cs
- GraphicsContainer.cs
- ClusterSafeNativeMethods.cs
- CanonicalFormWriter.cs
- MimeBasePart.cs
- PnrpPermission.cs
- RectangleF.cs
- DataColumnMappingCollection.cs
- WebPartRestoreVerb.cs
- DbConnectionInternal.cs
- DataPagerFieldCollection.cs
- EmptyElement.cs
- FileChangesMonitor.cs