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
- XmlDictionaryString.cs
- EventLogWatcher.cs
- WebPartTransformer.cs
- DbProviderFactoriesConfigurationHandler.cs
- DesignTimeParseData.cs
- IApplicationTrustManager.cs
- IisTraceListener.cs
- UnsafeNativeMethods.cs
- SplitterCancelEvent.cs
- List.cs
- Utility.cs
- safemediahandle.cs
- DeclaredTypeValidatorAttribute.cs
- Header.cs
- URL.cs
- SplitterEvent.cs
- FloaterParaClient.cs
- CustomAttributeBuilder.cs
- ShutDownListener.cs
- loginstatus.cs
- TextCharacters.cs
- CommonDialog.cs
- SortableBindingList.cs
- CompilerError.cs
- EntityDataReader.cs
- TranslateTransform3D.cs
- StringDictionaryWithComparer.cs
- ThousandthOfEmRealPoints.cs
- UrlPath.cs
- ZeroOpNode.cs
- DebuggerAttributes.cs
- ConnectionStringSettings.cs
- ProcessModelSection.cs
- XmlDocumentType.cs
- ButtonField.cs
- RepeatButtonAutomationPeer.cs
- Grant.cs
- GeneralTransformGroup.cs
- SchemaNamespaceManager.cs
- UnsafeNativeMethods.cs
- ExpressionNormalizer.cs
- ReferenceSchema.cs
- SqlStatistics.cs
- ExecutionContext.cs
- ReplyChannelBinder.cs
- ResourceDefaultValueAttribute.cs
- ScriptHandlerFactory.cs
- HijriCalendar.cs
- HtmlFormParameterReader.cs
- CachedTypeface.cs
- LayoutExceptionEventArgs.cs
- HttpProfileBase.cs
- CodeNamespaceImport.cs
- ExpandoObject.cs
- XmlSchemaValidator.cs
- UdpSocketReceiveManager.cs
- CheckBox.cs
- SqlInternalConnectionSmi.cs
- TraceContext.cs
- IPPacketInformation.cs
- ParentQuery.cs
- SqlCacheDependencySection.cs
- ToolStripItemRenderEventArgs.cs
- Resources.Designer.cs
- Geometry.cs
- PropertyToken.cs
- InvokeAction.cs
- C14NUtil.cs
- CompiledRegexRunner.cs
- CacheRequest.cs
- DebugInfoExpression.cs
- ObjectSet.cs
- Html32TextWriter.cs
- DBSchemaRow.cs
- BitmapEncoder.cs
- IIS7ConfigurationLoader.cs
- Currency.cs
- Metafile.cs
- RuleSetDialog.cs
- SpeechSynthesizer.cs
- FaultDescriptionCollection.cs
- XPathScanner.cs
- StrokeCollectionConverter.cs
- Internal.cs
- TemplateControlParser.cs
- ProgressBarBrushConverter.cs
- CheckStoreFileValidityRequest.cs
- IntSecurity.cs
- Int32Storage.cs
- AssemblyBuilderData.cs
- SqlDataSourceView.cs
- RichTextBox.cs
- ActiveXContainer.cs
- TreeNodeConverter.cs
- DateBoldEvent.cs
- BamlResourceSerializer.cs
- RightsController.cs
- LocalValueEnumerator.cs
- OleDbParameter.cs
- ObjectDataSourceDesigner.cs