Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- ObjectSet.cs
- TabRenderer.cs
- RegexCapture.cs
- TextDecorationCollection.cs
- UnsafeMethods.cs
- GridViewEditEventArgs.cs
- ActivationServices.cs
- ExpressionReplacer.cs
- HitTestResult.cs
- MenuItemCollection.cs
- ShutDownListener.cs
- XPathConvert.cs
- XPathNavigator.cs
- oledbmetadatacollectionnames.cs
- ProtocolsSection.cs
- DbDataSourceEnumerator.cs
- CompiledELinqQueryState.cs
- MouseCaptureWithinProperty.cs
- ExceptionTrace.cs
- LayoutTableCell.cs
- FixedTextPointer.cs
- Popup.cs
- TypeHelper.cs
- InputScopeAttribute.cs
- FreezableDefaultValueFactory.cs
- Span.cs
- AuthorizationRule.cs
- WmlObjectListAdapter.cs
- ParseChildrenAsPropertiesAttribute.cs
- DiscoveryClientReferences.cs
- HttpsHostedTransportConfiguration.cs
- PartialCachingControl.cs
- XmlExtensionFunction.cs
- SystemThemeKey.cs
- MulticastDelegate.cs
- Utils.cs
- WindowProviderWrapper.cs
- VideoDrawing.cs
- KeyValuePair.cs
- TabItem.cs
- TextRange.cs
- FixedSOMTable.cs
- CompareValidator.cs
- BaseProcessProtocolHandler.cs
- CqlQuery.cs
- IsolationInterop.cs
- GeometryCollection.cs
- _FixedSizeReader.cs
- TypefaceCollection.cs
- DateTimeSerializationSection.cs
- DashStyles.cs
- StructuredTypeInfo.cs
- FlowDocumentPage.cs
- CompleteWizardStep.cs
- PageTheme.cs
- DataGridViewRowContextMenuStripNeededEventArgs.cs
- ListControl.cs
- ExtensionSurface.cs
- TransactedBatchingElement.cs
- MessageFilterException.cs
- _TransmitFileOverlappedAsyncResult.cs
- LicFileLicenseProvider.cs
- RegexParser.cs
- DtrList.cs
- DbConnectionPoolCounters.cs
- SqlFileStream.cs
- DeploymentExceptionMapper.cs
- MappingSource.cs
- DataControlReferenceCollection.cs
- InternalConfigRoot.cs
- TextBoxAutomationPeer.cs
- GridView.cs
- SessionParameter.cs
- xsdvalidator.cs
- XmlSortKey.cs
- Helper.cs
- counter.cs
- UpdatableGenericsFeature.cs
- JsonSerializer.cs
- ComplexObject.cs
- TreeViewItem.cs
- StylusPointProperty.cs
- RIPEMD160Managed.cs
- PlainXmlSerializer.cs
- HMACSHA384.cs
- ReaderWriterLock.cs
- DataSourceXmlSerializationAttribute.cs
- XsltSettings.cs
- ContainerFilterService.cs
- FlowLayoutPanelDesigner.cs
- SafeViewOfFileHandle.cs
- CodeMemberField.cs
- TypeSystem.cs
- XmlEncoding.cs
- UIElementPropertyUndoUnit.cs
- DynamicUpdateCommand.cs
- AdjustableArrowCap.cs
- FactoryRecord.cs
- SqlDataReader.cs
- NativeMethods.cs