Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Shared / MS / Internal / Generated / RotationValidation.cs / 1305600 / 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
- ISessionStateStore.cs
- NullableFloatSumAggregationOperator.cs
- SrgsNameValueTag.cs
- GetPageCompletedEventArgs.cs
- ProxyWebPartConnectionCollection.cs
- TypeDescriptor.cs
- UnsafeNativeMethodsMilCoreApi.cs
- FaultContractAttribute.cs
- NamespaceImport.cs
- ServiceMemoryGates.cs
- MenuCommands.cs
- BasicExpressionVisitor.cs
- XpsFilter.cs
- ToolCreatedEventArgs.cs
- DbgCompiler.cs
- HostProtectionException.cs
- EntityViewContainer.cs
- ExpandedWrapper.cs
- Converter.cs
- GeneralTransform3D.cs
- EncodingFallbackAwareXmlTextWriter.cs
- activationcontext.cs
- TreeNode.cs
- DesignerGeometryHelper.cs
- Roles.cs
- ContextStaticAttribute.cs
- ConstraintCollection.cs
- _AutoWebProxyScriptWrapper.cs
- InitializingNewItemEventArgs.cs
- TagElement.cs
- EdmFunctions.cs
- StorageConditionPropertyMapping.cs
- WebPartVerbsEventArgs.cs
- Matrix3DValueSerializer.cs
- VectorValueSerializer.cs
- assemblycache.cs
- MissingSatelliteAssemblyException.cs
- EnumConverter.cs
- SoapEnumAttribute.cs
- InputLanguageEventArgs.cs
- ParseChildrenAsPropertiesAttribute.cs
- ContentTypeSettingDispatchMessageFormatter.cs
- ToolTipService.cs
- SqlLiftWhereClauses.cs
- XmlNullResolver.cs
- VectorValueSerializer.cs
- Group.cs
- SubstitutionList.cs
- RealProxy.cs
- AppDomainEvidenceFactory.cs
- Tokenizer.cs
- DatePicker.cs
- ZipIOLocalFileDataDescriptor.cs
- TdsParserStaticMethods.cs
- EqualityComparer.cs
- StateMachineWorkflow.cs
- TextPointerBase.cs
- SqlReorderer.cs
- BamlLocalizer.cs
- XmlSchemaAnyAttribute.cs
- ISO2022Encoding.cs
- ArgumentException.cs
- InputLanguageProfileNotifySink.cs
- VectorConverter.cs
- DataView.cs
- DataTableReaderListener.cs
- ConfigurationProviderException.cs
- cache.cs
- BasicExpandProvider.cs
- QilStrConcat.cs
- Translator.cs
- BufferedGraphicsManager.cs
- CounterSample.cs
- HttpFileCollection.cs
- IFlowDocumentViewer.cs
- SchemaImporter.cs
- TreeNode.cs
- PropertyHelper.cs
- ContentHostHelper.cs
- baseaxisquery.cs
- DbFunctionCommandTree.cs
- Splitter.cs
- ImmutableObjectAttribute.cs
- ListManagerBindingsCollection.cs
- KnownIds.cs
- KeyGesture.cs
- HostUtils.cs
- ResourceLoader.cs
- FlowLayoutSettings.cs
- MimeMultiPart.cs
- BitmapFrameDecode.cs
- RunInstallerAttribute.cs
- TypeConverterHelper.cs
- CodeTypeDeclaration.cs
- SqlDataReader.cs
- EncodingInfo.cs
- CachedTypeface.cs
- UInt32Storage.cs
- HTTPNotFoundHandler.cs
- OleDbParameter.cs