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
- CharacterShapingProperties.cs
- UndirectedGraph.cs
- ResourcePart.cs
- SR.cs
- ObjectFullSpanRewriter.cs
- HandoffBehavior.cs
- WebServiceAttribute.cs
- CompiledQueryCacheKey.cs
- CryptoStream.cs
- UnsignedPublishLicense.cs
- ContentValidator.cs
- Point4D.cs
- DesignerActionGlyph.cs
- ObjectListCommandsPage.cs
- PerformanceCountersBase.cs
- OwnerDrawPropertyBag.cs
- BehaviorEditorPart.cs
- SelectionEditingBehavior.cs
- SystemResourceHost.cs
- XmlSchemaSequence.cs
- FontFaceLayoutInfo.cs
- FixedFindEngine.cs
- AsyncResult.cs
- SiblingIterators.cs
- UriSectionReader.cs
- EntityDescriptor.cs
- CatalogPartDesigner.cs
- CodeDOMProvider.cs
- ExpressionBuilder.cs
- ActivationServices.cs
- XPathParser.cs
- OpCopier.cs
- XmlCharCheckingWriter.cs
- ResourceWriter.cs
- Int32CAMarshaler.cs
- HtmlInputRadioButton.cs
- SizeAnimationUsingKeyFrames.cs
- PrintDialog.cs
- IISUnsafeMethods.cs
- LinearKeyFrames.cs
- TemplatePartAttribute.cs
- XPathQueryGenerator.cs
- XmlDictionaryWriter.cs
- _AutoWebProxyScriptEngine.cs
- LocationUpdates.cs
- DataColumnPropertyDescriptor.cs
- RawStylusInputReport.cs
- ScriptingWebServicesSectionGroup.cs
- HealthMonitoringSection.cs
- BufferedGraphics.cs
- XmlSchemas.cs
- IxmlLineInfo.cs
- FlowLayoutSettings.cs
- StringCollectionEditor.cs
- MachineKeySection.cs
- StringValidatorAttribute.cs
- CodeTypeOfExpression.cs
- Input.cs
- SoapParser.cs
- Condition.cs
- Opcode.cs
- DecimalKeyFrameCollection.cs
- UnsafeNativeMethods.cs
- XmlSyndicationContent.cs
- VisualBasicHelper.cs
- PropertiesTab.cs
- InvalidFilterCriteriaException.cs
- BitmapEffectOutputConnector.cs
- SchemaCreator.cs
- ObjectStateEntry.cs
- StylusPointCollection.cs
- LinqDataSource.cs
- BamlBinaryWriter.cs
- CroppedBitmap.cs
- ObjectHandle.cs
- DataTemplateSelector.cs
- ResourceContainer.cs
- ByteRangeDownloader.cs
- TableLayout.cs
- OdbcConnectionString.cs
- ChtmlCalendarAdapter.cs
- NameValuePermission.cs
- SqlCacheDependency.cs
- Privilege.cs
- FileDialogCustomPlacesCollection.cs
- OracleParameterCollection.cs
- PersistenceMetadataNamespace.cs
- StoreAnnotationsMap.cs
- SoapCodeExporter.cs
- NullableFloatAverageAggregationOperator.cs
- ZipFileInfoCollection.cs
- PaintEvent.cs
- XmlTextEncoder.cs
- TextServicesCompartmentContext.cs
- FilterQuery.cs
- BinaryMethodMessage.cs
- GZipStream.cs
- LogStore.cs
- _CacheStreams.cs
- ErrorWebPart.cs