Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- ConfigUtil.cs
- AtomMaterializerLog.cs
- NamespaceQuery.cs
- XComponentModel.cs
- ReadOnlyAttribute.cs
- Setter.cs
- WpfSharedXamlSchemaContext.cs
- BrushMappingModeValidation.cs
- DataGridRelationshipRow.cs
- CodeBlockBuilder.cs
- MultipleViewPattern.cs
- SchemaAttDef.cs
- RSAProtectedConfigurationProvider.cs
- StreamGeometryContext.cs
- LocalFileSettingsProvider.cs
- _ScatterGatherBuffers.cs
- NativeMethods.cs
- WindowsAltTab.cs
- MobileUITypeEditor.cs
- ListControl.cs
- DispatcherTimer.cs
- DetailsViewRow.cs
- FormsAuthenticationModule.cs
- WebCodeGenerator.cs
- Configuration.cs
- DispatchOperationRuntime.cs
- ByteAnimationUsingKeyFrames.cs
- DoubleAnimation.cs
- TreeNodeMouseHoverEvent.cs
- ReaderWriterLock.cs
- MemberHolder.cs
- ViewLoader.cs
- Vector3DCollection.cs
- SqlUtil.cs
- NamedPipeTransportBindingElement.cs
- NetTcpBindingCollectionElement.cs
- ImageSourceValueSerializer.cs
- Token.cs
- CheckBoxStandardAdapter.cs
- TransactionProxy.cs
- DataGrid.cs
- FontFamilyValueSerializer.cs
- TemplateKey.cs
- BufferedWebEventProvider.cs
- HttpTransportSecurityElement.cs
- TimeSpanValidator.cs
- DataGridViewCellCancelEventArgs.cs
- AnimatedTypeHelpers.cs
- QuaternionAnimation.cs
- ThreadExceptionEvent.cs
- ExtendedPropertyDescriptor.cs
- ChannelRequirements.cs
- IntSecurity.cs
- EventBuilder.cs
- SiteMapNodeCollection.cs
- controlskin.cs
- HttpListenerElement.cs
- MimeTypeMapper.cs
- DoubleLink.cs
- TerminateDesigner.cs
- VisualTreeUtils.cs
- SemaphoreFullException.cs
- PointConverter.cs
- Point4DConverter.cs
- SymLanguageType.cs
- BasePropertyDescriptor.cs
- PostBackOptions.cs
- DropDownList.cs
- TypeTypeConverter.cs
- CodeTypeReference.cs
- ResourceBinder.cs
- HtmlInputImage.cs
- WinFormsUtils.cs
- EntityException.cs
- ResourceReferenceExpression.cs
- ProfileProvider.cs
- DateTimeAutomationPeer.cs
- MdiWindowListStrip.cs
- PropertyGeneratedEventArgs.cs
- CheckBoxBaseAdapter.cs
- StringValueConverter.cs
- EventLogInternal.cs
- ProviderUtil.cs
- PathSegment.cs
- FileDialog.cs
- path.cs
- SelectingProviderEventArgs.cs
- UnSafeCharBuffer.cs
- TextWriterEngine.cs
- HttpContext.cs
- WriteableBitmap.cs
- TargetPerspective.cs
- SqlInternalConnectionSmi.cs
- CodeCatchClause.cs
- UrlParameterWriter.cs
- ConditionalExpression.cs
- TextServicesPropertyRanges.cs
- hwndwrapper.cs
- DesignerAdapterUtil.cs
- HandlerBase.cs