Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- ChangeProcessor.cs
- FormDocumentDesigner.cs
- RepeatInfo.cs
- RegexNode.cs
- RoamingStoreFileUtility.cs
- DbDataSourceEnumerator.cs
- DocumentSequenceHighlightLayer.cs
- MetadataException.cs
- ApplicationDirectoryMembershipCondition.cs
- PrincipalPermission.cs
- ValidationHelper.cs
- QueryAccessibilityHelpEvent.cs
- ExtensibleClassFactory.cs
- FrameworkElementFactoryMarkupObject.cs
- SoapIncludeAttribute.cs
- XmlAttributeOverrides.cs
- ObfuscateAssemblyAttribute.cs
- TableLayoutSettings.cs
- ContentDisposition.cs
- ObjectStateFormatter.cs
- DataBindingCollection.cs
- XPathArrayIterator.cs
- DetailsViewPagerRow.cs
- XPathNavigatorReader.cs
- ControlCodeDomSerializer.cs
- TextViewBase.cs
- LinkedDataMemberFieldEditor.cs
- MarshalByRefObject.cs
- ToolBar.cs
- InputMethodStateChangeEventArgs.cs
- XmlMapping.cs
- ToolStripScrollButton.cs
- EventMappingSettings.cs
- ToolboxItemFilterAttribute.cs
- ArrangedElement.cs
- GlyphingCache.cs
- RegexBoyerMoore.cs
- StylusCaptureWithinProperty.cs
- RawStylusInputCustomDataList.cs
- clipboard.cs
- ToolStripComboBox.cs
- RuntimeEnvironment.cs
- RectKeyFrameCollection.cs
- ConditionalExpression.cs
- TemplateBuilder.cs
- BuiltInExpr.cs
- XsltArgumentList.cs
- UIPropertyMetadata.cs
- AutomationElement.cs
- CornerRadius.cs
- MarkerProperties.cs
- GlyphRunDrawing.cs
- KerberosReceiverSecurityToken.cs
- DbgUtil.cs
- PermissionToken.cs
- CommandSet.cs
- Int16Storage.cs
- TCPClient.cs
- HandlerWithFactory.cs
- ConnectionProviderAttribute.cs
- WebPermission.cs
- CodeDelegateInvokeExpression.cs
- StyleHelper.cs
- ObjectListDataBindEventArgs.cs
- MissingSatelliteAssemblyException.cs
- LinqDataSourceDisposeEventArgs.cs
- XmlILAnnotation.cs
- CompositeCollectionView.cs
- WarningException.cs
- GridEntry.cs
- RegistryPermission.cs
- DataAdapter.cs
- DetailsViewCommandEventArgs.cs
- ConstructorBuilder.cs
- EntityContainerRelationshipSetEnd.cs
- RawStylusInputCustomDataList.cs
- SystemGatewayIPAddressInformation.cs
- ProtectedConfigurationProviderCollection.cs
- _HeaderInfoTable.cs
- RequestDescription.cs
- LogicalExpressionTypeConverter.cs
- EncryptedReference.cs
- PrintPreviewDialog.cs
- ContentType.cs
- WmlLabelAdapter.cs
- OpCellTreeNode.cs
- CopyOnWriteList.cs
- RootProfilePropertySettingsCollection.cs
- NetDataContractSerializer.cs
- TraceContextRecord.cs
- WindowsListViewGroupHelper.cs
- sqlstateclientmanager.cs
- HierarchicalDataBoundControlAdapter.cs
- FontStretchConverter.cs
- ResXBuildProvider.cs
- LinearGradientBrush.cs
- GridItemProviderWrapper.cs
- EvidenceTypeDescriptor.cs
- XmlSequenceWriter.cs
- ReadContentAsBinaryHelper.cs