Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TimeoutStream.cs
- StylusTip.cs
- PasswordRecovery.cs
- BitmapEffectGeneralTransform.cs
- QuaternionValueSerializer.cs
- StrokeIntersection.cs
- BufferedReceiveElement.cs
- CurrentTimeZone.cs
- DockEditor.cs
- QueryOutputWriter.cs
- DiscreteKeyFrames.cs
- AdCreatedEventArgs.cs
- PropertyNames.cs
- PrintDocument.cs
- XmlSchemaComplexContent.cs
- PartitionedStream.cs
- SafeHandle.cs
- FontWeight.cs
- DesignTimeVisibleAttribute.cs
- _NativeSSPI.cs
- MediaElementAutomationPeer.cs
- SqlRowUpdatingEvent.cs
- Assert.cs
- StorageMappingItemLoader.cs
- AccessedThroughPropertyAttribute.cs
- DesignerDeviceConfig.cs
- InvalidEnumArgumentException.cs
- StackOverflowException.cs
- ControlTemplate.cs
- baseaxisquery.cs
- XmlAttributeOverrides.cs
- NativeMethods.cs
- SemanticAnalyzer.cs
- UIElementCollection.cs
- Int16KeyFrameCollection.cs
- EditorPartChrome.cs
- HostingEnvironment.cs
- ControlEvent.cs
- UrlParameterWriter.cs
- _FixedSizeReader.cs
- HwndHost.cs
- HostUtils.cs
- DataGridViewTextBoxColumn.cs
- HttpServerVarsCollection.cs
- Encoder.cs
- OleDbError.cs
- BitSet.cs
- ObjectStateManagerMetadata.cs
- Statements.cs
- ListViewTableRow.cs
- WebPartZoneCollection.cs
- EntityDataSourceStatementEditorForm.cs
- TextRangeAdaptor.cs
- ToolStripLabel.cs
- wmiprovider.cs
- DataGrid.cs
- ElementHost.cs
- TextEmbeddedObject.cs
- FolderLevelBuildProvider.cs
- NumericUpDownAccelerationCollection.cs
- ReaderWriterLock.cs
- MethodCallConverter.cs
- XmlLanguage.cs
- cache.cs
- NameValueFileSectionHandler.cs
- TraceXPathNavigator.cs
- URLMembershipCondition.cs
- SurrogateSelector.cs
- CodeDomConfigurationHandler.cs
- TouchPoint.cs
- FunctionUpdateCommand.cs
- ManifestResourceInfo.cs
- RelatedView.cs
- CmsUtils.cs
- DecimalKeyFrameCollection.cs
- GenericWebPart.cs
- HttpPostedFile.cs
- Label.cs
- FilteredAttributeCollection.cs
- RenderDataDrawingContext.cs
- XsdValidatingReader.cs
- XmlAnyElementAttributes.cs
- ISFTagAndGuidCache.cs
- SynchronizationLockException.cs
- DockProviderWrapper.cs
- UIntPtr.cs
- MsmqAuthenticationMode.cs
- AuthenticationModulesSection.cs
- EntityProviderFactory.cs
- BulletedList.cs
- MarkupObject.cs
- Root.cs
- NonParentingControl.cs
- XPathSingletonIterator.cs
- Avt.cs
- XmlSchemaInferenceException.cs
- MsmqIntegrationBindingElement.cs
- AmbientLight.cs
- MSG.cs
- WebResponse.cs