Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / 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 [....]/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
- TabItemWrapperAutomationPeer.cs
- Binding.cs
- MarshalByRefObject.cs
- SynchronizedDisposablePool.cs
- SystemIPInterfaceProperties.cs
- TypeListConverter.cs
- ForeignKeyConstraint.cs
- Converter.cs
- SessionParameter.cs
- BezierSegment.cs
- DateTimeFormat.cs
- CodeGeneratorOptions.cs
- ProcessHostFactoryHelper.cs
- RepeaterCommandEventArgs.cs
- NullRuntimeConfig.cs
- DataDocumentXPathNavigator.cs
- WebSysDefaultValueAttribute.cs
- OrderedDictionaryStateHelper.cs
- KeyFrames.cs
- NamespaceQuery.cs
- ReadWriteSpinLock.cs
- DbConnectionInternal.cs
- DoubleLinkList.cs
- SystemTcpStatistics.cs
- RegistrationContext.cs
- FormView.cs
- ValueUnavailableException.cs
- formatter.cs
- ControlBuilderAttribute.cs
- PropertyMappingExceptionEventArgs.cs
- ResolvePPIDRequest.cs
- DrawingGroup.cs
- XmlAttributeAttribute.cs
- SqlStatistics.cs
- PtsContext.cs
- RunWorkerCompletedEventArgs.cs
- CharacterBufferReference.cs
- CollectionsUtil.cs
- SqlUserDefinedAggregateAttribute.cs
- EdmSchemaAttribute.cs
- AmbiguousMatchException.cs
- UnsafeNativeMethods.cs
- SqlBinder.cs
- FacetValueContainer.cs
- DetailsViewDesigner.cs
- DataControlImageButton.cs
- XmlSchemaImporter.cs
- TextOutput.cs
- HostProtectionPermission.cs
- brushes.cs
- UserInitiatedRoutedEventPermissionAttribute.cs
- CompositeFontInfo.cs
- FixedDocumentPaginator.cs
- CLRBindingWorker.cs
- CollectionViewSource.cs
- SqlDataSourceEnumerator.cs
- DataGridColumnHeaderAutomationPeer.cs
- OSFeature.cs
- PlaceHolder.cs
- ConvertTextFrag.cs
- RouteValueDictionary.cs
- QuaternionRotation3D.cs
- UrlAuthFailureHandler.cs
- WindowsAuthenticationEventArgs.cs
- StrokeSerializer.cs
- WindowsPrincipal.cs
- streamingZipPartStream.cs
- DeploymentSection.cs
- IDispatchConstantAttribute.cs
- WebPartHeaderCloseVerb.cs
- ToolStripItem.cs
- BasicViewGenerator.cs
- ReflectionUtil.cs
- NameNode.cs
- WpfSharedXamlSchemaContext.cs
- HashHelper.cs
- BufferedGraphicsManager.cs
- ColorConverter.cs
- UniformGrid.cs
- PersonalizationProviderCollection.cs
- WindowsTab.cs
- CharUnicodeInfo.cs
- WebPartManagerInternals.cs
- HiddenFieldPageStatePersister.cs
- DelegatedStream.cs
- WebBrowserNavigatingEventHandler.cs
- EmptyEnumerable.cs
- DataGridViewButtonCell.cs
- StickyNote.cs
- TagMapCollection.cs
- SQLInt16.cs
- GridViewUpdateEventArgs.cs
- MainMenu.cs
- GreenMethods.cs
- InlineCollection.cs
- EncoderNLS.cs
- SelectionPattern.cs
- SystemPens.cs
- EarlyBoundInfo.cs
- CompilerGeneratedAttribute.cs