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
- SqlNodeTypeOperators.cs
- CopyAttributesAction.cs
- PublisherIdentityPermission.cs
- CompressStream.cs
- dtdvalidator.cs
- PrefixQName.cs
- StaticFileHandler.cs
- ActiveDocumentEvent.cs
- WinHttpWebProxyFinder.cs
- SelectorAutomationPeer.cs
- WorkflowElementDialog.cs
- SqlXml.cs
- Dictionary.cs
- XPathNavigator.cs
- XmlWrappingReader.cs
- ToolboxComponentsCreatingEventArgs.cs
- CodeMethodInvokeExpression.cs
- IntSecurity.cs
- Single.cs
- WindowsButton.cs
- OracleLob.cs
- BamlBinaryWriter.cs
- SystemGatewayIPAddressInformation.cs
- RealProxy.cs
- NameTable.cs
- ConnectionsZoneAutoFormat.cs
- CodeEntryPointMethod.cs
- RegionData.cs
- TextTreeFixupNode.cs
- RegexCompiler.cs
- RoutedEventConverter.cs
- DataGridViewSelectedRowCollection.cs
- ExpressionHelper.cs
- InkPresenter.cs
- StorageFunctionMapping.cs
- PrintEvent.cs
- TrackingExtract.cs
- Int16AnimationUsingKeyFrames.cs
- WebScriptEnablingBehavior.cs
- RowToFieldTransformer.cs
- CodeDomConfigurationHandler.cs
- VirtualDirectoryMapping.cs
- TextParagraphView.cs
- IList.cs
- FileInfo.cs
- DataPagerField.cs
- HttpCapabilitiesEvaluator.cs
- SafeThemeHandle.cs
- HierarchicalDataSourceIDConverter.cs
- HttpWebRequest.cs
- ByteRangeDownloader.cs
- BindingMAnagerBase.cs
- ZipIOLocalFileBlock.cs
- RenamedEventArgs.cs
- _ConnectionGroup.cs
- HeaderCollection.cs
- IxmlLineInfo.cs
- recordstate.cs
- Group.cs
- EventManager.cs
- ResourceSet.cs
- ValidatedControlConverter.cs
- TextSimpleMarkerProperties.cs
- ResolveNameEventArgs.cs
- GestureRecognizer.cs
- SelectionProcessor.cs
- CultureInfo.cs
- CharacterBuffer.cs
- AuthenticatedStream.cs
- TextParagraphProperties.cs
- XmlSignatureManifest.cs
- ZeroOpNode.cs
- IRCollection.cs
- XmlArrayItemAttributes.cs
- AppDomainCompilerProxy.cs
- XPathNode.cs
- Collection.cs
- WmpBitmapEncoder.cs
- Pen.cs
- AuthenticatedStream.cs
- WindowShowOrOpenTracker.cs
- RegexCaptureCollection.cs
- CompoundFileStorageReference.cs
- SrgsGrammar.cs
- FixedTextBuilder.cs
- TemplateDefinition.cs
- DSGeneratorProblem.cs
- ExistsInCollection.cs
- IBuiltInEvidence.cs
- XmlSignificantWhitespace.cs
- Package.cs
- AlternateViewCollection.cs
- NameSpaceExtractor.cs
- FixedHighlight.cs
- PrintPreviewDialog.cs
- RunWorkerCompletedEventArgs.cs
- StylusPointCollection.cs
- ImageIndexEditor.cs
- RequestUriProcessor.cs
- DataViewManagerListItemTypeDescriptor.cs