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
- wgx_sdk_version.cs
- FixedSOMPageConstructor.cs
- RepeaterCommandEventArgs.cs
- ProcessProtocolHandler.cs
- ToolboxItemFilterAttribute.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- SortAction.cs
- ValidationSummary.cs
- TypeDescriptionProvider.cs
- DynamicRouteExpression.cs
- PersonalizationStateInfoCollection.cs
- Stroke2.cs
- TargetControlTypeAttribute.cs
- FormViewUpdatedEventArgs.cs
- HttpPostedFileBase.cs
- HttpRequestWrapper.cs
- _NegotiateClient.cs
- ImpersonateTokenRef.cs
- WebExceptionStatus.cs
- IndentedTextWriter.cs
- SymbolMethod.cs
- UseAttributeSetsAction.cs
- GeometryCombineModeValidation.cs
- Int32EqualityComparer.cs
- SqlProcedureAttribute.cs
- EntitySetBaseCollection.cs
- ColumnHeaderConverter.cs
- DbDataSourceEnumerator.cs
- MatrixAnimationUsingKeyFrames.cs
- LogWriteRestartAreaState.cs
- SafeViewOfFileHandle.cs
- indexingfiltermarshaler.cs
- HtmlTableRowCollection.cs
- webclient.cs
- ObjectToken.cs
- ConstructorExpr.cs
- DataFormats.cs
- ServiceOperationWrapper.cs
- Instrumentation.cs
- TreeNodeConverter.cs
- CroppedBitmap.cs
- RankException.cs
- XmlReaderSettings.cs
- ObjectConverter.cs
- IssuanceLicense.cs
- MsmqHostedTransportManager.cs
- MetadataException.cs
- TextTreeExtractElementUndoUnit.cs
- OleDbTransaction.cs
- Gdiplus.cs
- ScriptModule.cs
- FixedSOMTableRow.cs
- ParagraphResult.cs
- ExceptionHelpers.cs
- PropertyDescriptorCollection.cs
- MenuDesigner.cs
- _IPv6Address.cs
- cookie.cs
- ToolStripSplitButton.cs
- RightsManagementEncryptedStream.cs
- DataContractSerializerFaultFormatter.cs
- TypedRowGenerator.cs
- RuntimeCompatibilityAttribute.cs
- EventLogger.cs
- ScriptingSectionGroup.cs
- SingleStorage.cs
- FrameworkPropertyMetadata.cs
- _ListenerRequestStream.cs
- LongValidator.cs
- EmptyReadOnlyDictionaryInternal.cs
- XPathDocumentNavigator.cs
- ServiceInstanceProvider.cs
- CacheRequest.cs
- Material.cs
- SchemaDeclBase.cs
- SRef.cs
- AsyncOperation.cs
- objectresult_tresulttype.cs
- NonVisualControlAttribute.cs
- FormsAuthenticationUser.cs
- WindowsListViewItemCheckBox.cs
- wgx_sdk_version.cs
- MediaScriptCommandRoutedEventArgs.cs
- ClientConvert.cs
- MasterPage.cs
- BaseTemplateParser.cs
- NotifyIcon.cs
- ApplicationBuildProvider.cs
- ClassHandlersStore.cs
- DataAdapter.cs
- _SslSessionsCache.cs
- MissingMemberException.cs
- SafeNativeMethodsCLR.cs
- Control.cs
- WmlMobileTextWriter.cs
- NotifyIcon.cs
- Point3DValueSerializer.cs
- SmiEventSink.cs
- VisualTreeHelper.cs
- Configuration.cs