Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- NoneExcludedImageIndexConverter.cs
- CSharpCodeProvider.cs
- DBSchemaTable.cs
- UserControlParser.cs
- ComboBox.cs
- CornerRadius.cs
- TabItemAutomationPeer.cs
- FontResourceCache.cs
- ConsumerConnectionPointCollection.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- CultureInfoConverter.cs
- VectorAnimation.cs
- OdbcHandle.cs
- Size.cs
- XhtmlBasicSelectionListAdapter.cs
- TableChangeProcessor.cs
- PropertySourceInfo.cs
- ReferenceService.cs
- ControlUtil.cs
- GetPolicyDetailsRequest.cs
- ScopedKnownTypes.cs
- BuildProvider.cs
- RadioButtonPopupAdapter.cs
- ProviderConnectionPointCollection.cs
- SystemEvents.cs
- SystemBrushes.cs
- ISFTagAndGuidCache.cs
- ScrollChrome.cs
- FileUtil.cs
- PagesSection.cs
- ComplexPropertyEntry.cs
- SqlReferenceCollection.cs
- DataControlImageButton.cs
- AsyncOperationContext.cs
- DataControlFieldCell.cs
- FontUnit.cs
- InvalidEnumArgumentException.cs
- UIPermission.cs
- NetCodeGroup.cs
- FileDialogCustomPlacesCollection.cs
- SatelliteContractVersionAttribute.cs
- xmlfixedPageInfo.cs
- CommandBindingCollection.cs
- ScrollEventArgs.cs
- DiscoveryOperationContext.cs
- TextOutput.cs
- FileVersion.cs
- RoleGroupCollection.cs
- HttpResponse.cs
- StrokeCollection2.cs
- BamlResourceContent.cs
- GradientStop.cs
- SEHException.cs
- ProxyGenerator.cs
- HttpPostServerProtocol.cs
- DataSourceCache.cs
- AdobeCFFWrapper.cs
- ECDsa.cs
- StatusBarDrawItemEvent.cs
- SqlNotificationEventArgs.cs
- OleDbErrorCollection.cs
- EntityConnection.cs
- InstalledFontCollection.cs
- CompositeFontFamily.cs
- TableAdapterManagerGenerator.cs
- FileNotFoundException.cs
- MenuItemBinding.cs
- Overlapped.cs
- ThicknessAnimationBase.cs
- GenericTextProperties.cs
- ResourceAssociationType.cs
- StackOverflowException.cs
- KeyboardDevice.cs
- Size.cs
- GraphicsState.cs
- FrugalMap.cs
- StructuralObject.cs
- WindowsListViewScroll.cs
- ShaderEffect.cs
- DeviceContexts.cs
- CompleteWizardStep.cs
- StorageTypeMapping.cs
- ViewStateException.cs
- CultureNotFoundException.cs
- QueryCacheEntry.cs
- safelink.cs
- FileNotFoundException.cs
- ToolStripItemCollection.cs
- FormattedText.cs
- KerberosSecurityTokenProvider.cs
- FontEmbeddingManager.cs
- SimpleFieldTemplateUserControl.cs
- TransformerInfo.cs
- NodeLabelEditEvent.cs
- QueryOpcode.cs
- KeyEvent.cs
- GridItemCollection.cs
- EditorPartChrome.cs
- OneOfConst.cs
- Part.cs