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
- FolderBrowserDialog.cs
- MobileErrorInfo.cs
- ToolStripControlHost.cs
- ControlAdapter.cs
- SoapInteropTypes.cs
- XmlHierarchicalDataSourceView.cs
- CacheDependency.cs
- PeerNameRecordCollection.cs
- HeaderCollection.cs
- AuthorizationRuleCollection.cs
- WindowsBrush.cs
- CollectionViewGroupInternal.cs
- DesignerPainter.cs
- DocumentSchemaValidator.cs
- DesigntimeLicenseContext.cs
- OleDbTransaction.cs
- TrustManagerMoreInformation.cs
- ChannelPool.cs
- ClientSettings.cs
- CharConverter.cs
- DynamicPropertyHolder.cs
- PrePrepareMethodAttribute.cs
- TaskFormBase.cs
- NamedPipeConnectionPoolSettings.cs
- ActiveDocumentEvent.cs
- SerializerProvider.cs
- SqlDataSourceParameterParser.cs
- RadioButtonList.cs
- Vector3D.cs
- CustomErrorsSection.cs
- newitemfactory.cs
- DataBoundControlActionList.cs
- WebPartConnectionsConnectVerb.cs
- Point4DValueSerializer.cs
- ShapingWorkspace.cs
- SqlIdentifier.cs
- StyleTypedPropertyAttribute.cs
- SafeCryptoHandles.cs
- ExpressionBinding.cs
- Point3DValueSerializer.cs
- PeerSecurityHelpers.cs
- LabelDesigner.cs
- ScrollViewer.cs
- ImageField.cs
- SparseMemoryStream.cs
- XmlTextReaderImpl.cs
- ConfigurationLocation.cs
- HttpRawResponse.cs
- BindingsCollection.cs
- AsymmetricKeyExchangeDeformatter.cs
- CompoundFileReference.cs
- ISessionStateStore.cs
- Stack.cs
- SendKeys.cs
- SocketInformation.cs
- SimpleWorkerRequest.cs
- UriTemplateLiteralQueryValue.cs
- MetaType.cs
- WebUtil.cs
- XslNumber.cs
- SQLMoneyStorage.cs
- SessionStateSection.cs
- AsymmetricKeyExchangeDeformatter.cs
- X509Utils.cs
- _SslStream.cs
- MemberInfoSerializationHolder.cs
- Function.cs
- _AuthenticationState.cs
- StringUtil.cs
- Int16AnimationBase.cs
- Variant.cs
- SqlXml.cs
- XamlSerializer.cs
- CommandField.cs
- CompareInfo.cs
- XmlTextReader.cs
- CommonServiceBehaviorElement.cs
- MatchingStyle.cs
- KnownTypes.cs
- coordinatorscratchpad.cs
- DependencyObject.cs
- HighlightVisual.cs
- DataSourceSelectArguments.cs
- RichTextBox.cs
- sapiproxy.cs
- DiagnosticTrace.cs
- ValidationRuleCollection.cs
- FontSource.cs
- DiscoveryClientProtocol.cs
- Point4DConverter.cs
- IndentedTextWriter.cs
- ping.cs
- RegexFCD.cs
- PeerSecurityHelpers.cs
- BrowsableAttribute.cs
- MessagePartProtectionMode.cs
- MessageLoggingFilterTraceRecord.cs
- SQLBytesStorage.cs
- RadialGradientBrush.cs
- HandledEventArgs.cs