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
- PerformanceCounter.cs
- HashMembershipCondition.cs
- Array.cs
- CellCreator.cs
- SafeNativeMethods.cs
- VariableDesigner.xaml.cs
- HttpHandlerAction.cs
- PropertyExpression.cs
- DesignDataSource.cs
- RetrieveVirtualItemEventArgs.cs
- BaseDataBoundControl.cs
- QuaternionRotation3D.cs
- Maps.cs
- BaseDataBoundControl.cs
- Bezier.cs
- ZipIOCentralDirectoryBlock.cs
- AssociatedControlConverter.cs
- VectorCollectionConverter.cs
- SqlInternalConnectionSmi.cs
- XmlSchemaSet.cs
- MdiWindowListStrip.cs
- ArraySubsetEnumerator.cs
- LOSFormatter.cs
- IDispatchConstantAttribute.cs
- ActiveXContainer.cs
- DetailsViewPagerRow.cs
- WebServiceErrorEvent.cs
- WhiteSpaceTrimStringConverter.cs
- Int32Storage.cs
- hwndwrapper.cs
- CodeTypeParameterCollection.cs
- XmlChildNodes.cs
- XmlImplementation.cs
- messageonlyhwndwrapper.cs
- SimpleType.cs
- PageClientProxyGenerator.cs
- DBDataPermission.cs
- FrameworkPropertyMetadata.cs
- ArraySortHelper.cs
- SqlConnectionPoolProviderInfo.cs
- QualificationDataAttribute.cs
- DataSourceControlBuilder.cs
- EditorOptionAttribute.cs
- TextDocumentView.cs
- TransformPatternIdentifiers.cs
- MsmqQueue.cs
- BrowserCapabilitiesFactoryBase.cs
- Vector3D.cs
- BooleanFunctions.cs
- ObjectComplexPropertyMapping.cs
- AsnEncodedData.cs
- XmlSerializerOperationFormatter.cs
- TraceUtility.cs
- EventManager.cs
- AuthorizationRule.cs
- CommonBehaviorsSection.cs
- RSAPKCS1KeyExchangeFormatter.cs
- FormViewModeEventArgs.cs
- XmlSerializerObjectSerializer.cs
- Deflater.cs
- ProvidersHelper.cs
- SudsCommon.cs
- TheQuery.cs
- XmlSchemaObject.cs
- OdbcErrorCollection.cs
- DecoderFallback.cs
- Int32CollectionValueSerializer.cs
- WebSysDescriptionAttribute.cs
- DataServiceProcessingPipelineEventArgs.cs
- CodeGeneratorOptions.cs
- objectquery_tresulttype.cs
- SqlStream.cs
- ToolStripItemBehavior.cs
- EntityCollection.cs
- PrintDialog.cs
- CompareValidator.cs
- RowParagraph.cs
- FloaterBaseParaClient.cs
- ItemMap.cs
- DataObjectPastingEventArgs.cs
- TypeHelpers.cs
- OdbcConnectionOpen.cs
- QueryableFilterRepeater.cs
- XmlEncodedRawTextWriter.cs
- HMACSHA384.cs
- Triplet.cs
- HttpHeaderCollection.cs
- CustomAssemblyResolver.cs
- SqlCaseSimplifier.cs
- DSACryptoServiceProvider.cs
- ConstantProjectedSlot.cs
- MetaType.cs
- ComponentCommands.cs
- PerformanceCounterPermission.cs
- RIPEMD160Managed.cs
- DataGrid.cs
- ToolStripRendererSwitcher.cs
- GridViewHeaderRowPresenterAutomationPeer.cs
- SqlDataAdapter.cs
- DockPanel.cs