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
- DataGridViewCellCancelEventArgs.cs
- LinearGradientBrush.cs
- PersonalizationDictionary.cs
- Base64Encoder.cs
- EtwTrace.cs
- Separator.cs
- ReplyChannelBinder.cs
- DnsElement.cs
- RichTextBoxConstants.cs
- ListItemParagraph.cs
- EnterpriseServicesHelper.cs
- DefaultBinder.cs
- CroppedBitmap.cs
- RegionInfo.cs
- RightsManagementInformation.cs
- DateTimeValueSerializer.cs
- PageThemeCodeDomTreeGenerator.cs
- MachineKey.cs
- SwitchLevelAttribute.cs
- StylusPointProperties.cs
- HTTPNotFoundHandler.cs
- Int32EqualityComparer.cs
- Trace.cs
- ComplexPropertyEntry.cs
- UIElementParaClient.cs
- Decimal.cs
- MaskDescriptor.cs
- StaticDataManager.cs
- SettingsSavedEventArgs.cs
- ModuleBuilderData.cs
- SqlTrackingService.cs
- AssemblyCacheEntry.cs
- ContentHostHelper.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- ConnectionProviderAttribute.cs
- basenumberconverter.cs
- ParallelRangeManager.cs
- TypeCacheManager.cs
- FieldToken.cs
- FusionWrap.cs
- QualificationDataAttribute.cs
- X509CertificateStore.cs
- XPathNodeList.cs
- NativeMethods.cs
- BaseAddressPrefixFilterElementCollection.cs
- InstanceBehavior.cs
- SqlCommand.cs
- EventItfInfo.cs
- TextElementEditingBehaviorAttribute.cs
- KnowledgeBase.cs
- TimeEnumHelper.cs
- ParameterCollection.cs
- List.cs
- MetabaseSettingsIis7.cs
- PaperSource.cs
- WebRequestModuleElement.cs
- DataGridViewLinkCell.cs
- RPIdentityRequirement.cs
- ConfigurationErrorsException.cs
- AssemblyAttributesGoHere.cs
- ScriptRef.cs
- SmiEventSink_Default.cs
- RecognizeCompletedEventArgs.cs
- EarlyBoundInfo.cs
- SchemaNotation.cs
- PenThreadPool.cs
- OperationValidationEventArgs.cs
- DBNull.cs
- StrokeRenderer.cs
- ClientSettingsProvider.cs
- ManagedCodeMarkers.cs
- SemaphoreSecurity.cs
- AliasedSlot.cs
- WebPartHelpVerb.cs
- DataServiceStreamProviderWrapper.cs
- CapabilitiesState.cs
- ConfigurationManagerHelperFactory.cs
- RightsManagementInformation.cs
- DataGridViewTextBoxEditingControl.cs
- ZipIOModeEnforcingStream.cs
- DesignerWebPartChrome.cs
- XmlWriterSettings.cs
- AspCompat.cs
- X509ChainElement.cs
- Util.cs
- BitVec.cs
- SafeRightsManagementHandle.cs
- HttpDebugHandler.cs
- DeadCharTextComposition.cs
- SponsorHelper.cs
- SettingsBindableAttribute.cs
- MdImport.cs
- ParallelRangeManager.cs
- MarkedHighlightComponent.cs
- QilBinary.cs
- Transform3DGroup.cs
- RightsController.cs
- RunWorkerCompletedEventArgs.cs
- InternalsVisibleToAttribute.cs
- PopupRoot.cs