Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- XPathNodeList.cs
- RawKeyboardInputReport.cs
- EtwTrace.cs
- ReferenceEqualityComparer.cs
- QilName.cs
- CharKeyFrameCollection.cs
- ReadOnlyCollectionBase.cs
- TreePrinter.cs
- Set.cs
- DependencyPropertyKey.cs
- InputDevice.cs
- MetaTable.cs
- SecurityCriticalDataForSet.cs
- AssociationType.cs
- DataRecord.cs
- RequestCacheValidator.cs
- smtppermission.cs
- ItemMap.cs
- StringWriter.cs
- XmlDictionaryWriter.cs
- BamlTreeNode.cs
- ActionFrame.cs
- TextBoxDesigner.cs
- WeakReadOnlyCollection.cs
- PropertyValueChangedEvent.cs
- PixelShader.cs
- DataGridViewColumnEventArgs.cs
- WebBrowserBase.cs
- Int16.cs
- CapabilitiesRule.cs
- AccessViolationException.cs
- MasterPageBuildProvider.cs
- StringValueSerializer.cs
- PropertiesTab.cs
- AssociationSetMetadata.cs
- ContourSegment.cs
- WebPartDeleteVerb.cs
- TabletCollection.cs
- UniformGrid.cs
- MasterPageCodeDomTreeGenerator.cs
- UnsupportedPolicyOptionsException.cs
- ViewManager.cs
- ConfigXmlText.cs
- DataGridLengthConverter.cs
- WorkflowDefinitionDispenser.cs
- OdbcDataAdapter.cs
- ResourceProviderFactory.cs
- VisualStyleInformation.cs
- FtpWebResponse.cs
- DocumentReferenceCollection.cs
- LineProperties.cs
- CompareValidator.cs
- ButtonBase.cs
- HwndProxyElementProvider.cs
- EmptyCollection.cs
- ResourceReferenceExpression.cs
- TrackingLocationCollection.cs
- TargetControlTypeAttribute.cs
- TabControlEvent.cs
- ComponentCodeDomSerializer.cs
- StringArrayConverter.cs
- MetadataPropertyvalue.cs
- OleDbTransaction.cs
- ObjectReaderCompiler.cs
- XhtmlBasicCommandAdapter.cs
- RemoteWebConfigurationHostStream.cs
- TreeViewItem.cs
- FixedHyperLink.cs
- BindableAttribute.cs
- TextEditorThreadLocalStore.cs
- DefaultObjectSerializer.cs
- TextTreeText.cs
- SmuggledIUnknown.cs
- AuthorizationRuleCollection.cs
- PreDigestedSignedInfo.cs
- WebEncodingValidatorAttribute.cs
- PointKeyFrameCollection.cs
- WorkflowMarkupSerializer.cs
- StyleSheet.cs
- CodeTypeDelegate.cs
- FacetValueContainer.cs
- GridViewCellAutomationPeer.cs
- VisualTarget.cs
- AsyncOperation.cs
- XmlDownloadManager.cs
- MailWebEventProvider.cs
- DownloadProgressEventArgs.cs
- HttpCacheParams.cs
- CalloutQueueItem.cs
- GridErrorDlg.cs
- WindowsNonControl.cs
- WmlControlAdapter.cs
- FakeModelItemImpl.cs
- MetadataArtifactLoaderCompositeFile.cs
- WebRequestModulesSection.cs
- HttpListenerResponse.cs
- OleDbPropertySetGuid.cs
- BStrWrapper.cs
- OrderPreservingSpoolingTask.cs
- LayoutUtils.cs