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
- SafeNativeMethodsOther.cs
- SettingsPropertyIsReadOnlyException.cs
- XmlNodeChangedEventArgs.cs
- DataGridViewDataErrorEventArgs.cs
- DataGridViewHitTestInfo.cs
- StyleCollection.cs
- ScrollableControl.cs
- PersonalizableTypeEntry.cs
- CleanUpVirtualizedItemEventArgs.cs
- CounterCreationDataCollection.cs
- OneOfScalarConst.cs
- BaseProcessProtocolHandler.cs
- SubtreeProcessor.cs
- GlobalProxySelection.cs
- EnumUnknown.cs
- ThrowHelper.cs
- SoapExtensionImporter.cs
- KeyFrames.cs
- Matrix3DValueSerializer.cs
- DataGrid.cs
- DesignerActionItemCollection.cs
- WorkerRequest.cs
- SiteMapSection.cs
- OrderedDictionary.cs
- SQLSingleStorage.cs
- CommentAction.cs
- XmlSchemaValidationException.cs
- Brush.cs
- configsystem.cs
- ConfigurationLockCollection.cs
- SystemIPGlobalProperties.cs
- wmiprovider.cs
- CheckBoxFlatAdapter.cs
- _NTAuthentication.cs
- StringDictionaryWithComparer.cs
- FormViewAutoFormat.cs
- Win32Exception.cs
- WebPartDescriptionCollection.cs
- CombinedGeometry.cs
- TreeNodeStyleCollection.cs
- BasicExpandProvider.cs
- AccessDataSource.cs
- WebPartConnectVerb.cs
- TemplateControl.cs
- MatrixAnimationUsingKeyFrames.cs
- ExpandedWrapper.cs
- CanonicalFormWriter.cs
- HtmlElementEventArgs.cs
- EasingQuaternionKeyFrame.cs
- DiagnosticsConfigurationHandler.cs
- EtwTrackingParticipant.cs
- DataGridViewControlCollection.cs
- ComPlusThreadInitializer.cs
- CodeThrowExceptionStatement.cs
- IndexObject.cs
- BitmapImage.cs
- XmlSortKeyAccumulator.cs
- WorkflowApplicationAbortedException.cs
- SqlMethodCallConverter.cs
- Light.cs
- DefaultValidator.cs
- SiteMapProvider.cs
- Typography.cs
- Msec.cs
- _AuthenticationState.cs
- glyphs.cs
- TextServicesHost.cs
- CalendarTable.cs
- SynchronizedPool.cs
- ReachSerializationUtils.cs
- MessageQueueException.cs
- MutableAssemblyCacheEntry.cs
- RepeatBehaviorConverter.cs
- Serializer.cs
- XPathExpr.cs
- InheritablePropertyChangeInfo.cs
- Debugger.cs
- CodeNamespaceImport.cs
- HttpCacheParams.cs
- CacheChildrenQuery.cs
- ThaiBuddhistCalendar.cs
- BuildResultCache.cs
- BamlResourceContent.cs
- UriSection.cs
- SystemFonts.cs
- ConfigXmlDocument.cs
- ProcessHost.cs
- BitmapEffect.cs
- DesignerVerbToolStripMenuItem.cs
- FtpCachePolicyElement.cs
- MDIWindowDialog.cs
- WinEventHandler.cs
- ContextInformation.cs
- TraceHwndHost.cs
- NameTable.cs
- NavigationCommands.cs
- TextEditorThreadLocalStore.cs
- TemplateField.cs
- StateItem.cs
- XPathAncestorQuery.cs