Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Shared / MS / Internal / Generated / RotationValidation.cs / 1305600 / 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
- ArgumentException.cs
- MetadataArtifactLoaderResource.cs
- SingleStorage.cs
- FilteredReadOnlyMetadataCollection.cs
- Helpers.cs
- ToolboxDataAttribute.cs
- ImageSourceValueSerializer.cs
- HttpBrowserCapabilitiesWrapper.cs
- DeclarativeCatalogPart.cs
- CatalogPart.cs
- ChangesetResponse.cs
- CodeGen.cs
- OperatingSystem.cs
- ClientSideQueueItem.cs
- SpanIndex.cs
- TimeEnumHelper.cs
- baseshape.cs
- M3DUtil.cs
- ContainerControl.cs
- WorkflowDesigner.cs
- BamlLocalizableResourceKey.cs
- EdmError.cs
- KeyedHashAlgorithm.cs
- MemoryFailPoint.cs
- FlowDocumentFormatter.cs
- BuilderPropertyEntry.cs
- BlurBitmapEffect.cs
- FilteredAttributeCollection.cs
- CloseCollectionAsyncResult.cs
- GenerateTemporaryTargetAssembly.cs
- ResourceDisplayNameAttribute.cs
- SoapReflectionImporter.cs
- securitycriticaldataformultiplegetandset.cs
- ToolStripPanelRow.cs
- StylusPlugInCollection.cs
- GenericsInstances.cs
- PopupRoot.cs
- DataSpaceManager.cs
- sortedlist.cs
- MDIClient.cs
- SqlInfoMessageEvent.cs
- ObjectViewEntityCollectionData.cs
- ToolstripProfessionalRenderer.cs
- BitmapMetadataEnumerator.cs
- FrameworkElement.cs
- ValidationPropertyAttribute.cs
- MatrixAnimationUsingPath.cs
- FileIOPermission.cs
- BooleanConverter.cs
- AsymmetricSignatureFormatter.cs
- WebUtil.cs
- serverconfig.cs
- DBCommandBuilder.cs
- FontUnit.cs
- DataGridViewSelectedCellCollection.cs
- UidManager.cs
- IApplicationTrustManager.cs
- DefaultProxySection.cs
- Light.cs
- GeometryCombineModeValidation.cs
- BypassElement.cs
- Exception.cs
- ColumnResizeUndoUnit.cs
- Substitution.cs
- TypeToken.cs
- Timer.cs
- TypeConverterAttribute.cs
- PropertyValueChangedEvent.cs
- TraceContextRecord.cs
- PassportIdentity.cs
- SequenceDesignerAccessibleObject.cs
- ImageCodecInfo.cs
- ToolStripDropDownClosingEventArgs.cs
- ComponentSerializationService.cs
- SafeLocalMemHandle.cs
- ConnectionPointConverter.cs
- XamlReader.cs
- ValueSerializer.cs
- PagerSettings.cs
- SectionInput.cs
- ConfigXmlElement.cs
- mediaeventshelper.cs
- TaiwanCalendar.cs
- ArraySubsetEnumerator.cs
- DataGridAutomationPeer.cs
- InstanceContextMode.cs
- ErrorTableItemStyle.cs
- XmlUTF8TextWriter.cs
- FieldNameLookup.cs
- ReaderWriterLock.cs
- SubclassTypeValidator.cs
- SqlTransaction.cs
- WebSysDefaultValueAttribute.cs
- UrlPath.cs
- PermissionSetTriple.cs
- _NativeSSPI.cs
- BitmapEffect.cs
- SortedDictionary.cs
- SpecularMaterial.cs
- Positioning.cs