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
- SerializationAttributes.cs
- DbUpdateCommandTree.cs
- TreeViewImageIndexConverter.cs
- PropertiesTab.cs
- WebConfigurationHost.cs
- MetadataSource.cs
- BasicExpressionVisitor.cs
- Native.cs
- NamedPermissionSet.cs
- MaskedTextBoxTextEditor.cs
- SyndicationFeed.cs
- DesignTable.cs
- ISAPIApplicationHost.cs
- BitmapEffectInput.cs
- DataGridViewCellContextMenuStripNeededEventArgs.cs
- TypeReference.cs
- TimeSpanSecondsConverter.cs
- SqlPersonalizationProvider.cs
- DataRelationCollection.cs
- StylusPointPropertyUnit.cs
- ConfigsHelper.cs
- TextFindEngine.cs
- HyperLinkStyle.cs
- LineMetrics.cs
- PlanCompilerUtil.cs
- CultureInfoConverter.cs
- InkCanvasInnerCanvas.cs
- OleDbWrapper.cs
- FlowDocumentFormatter.cs
- HyperLinkStyle.cs
- DelegatedStream.cs
- Single.cs
- KeyValuePairs.cs
- ToolboxBitmapAttribute.cs
- ButtonBase.cs
- TransformerInfoCollection.cs
- Transform.cs
- RegexWriter.cs
- DrawingServices.cs
- CallContext.cs
- CommentEmitter.cs
- ManagementEventWatcher.cs
- Soap12ProtocolImporter.cs
- SecurityKeyIdentifierClause.cs
- ElementNotAvailableException.cs
- GeometryDrawing.cs
- WebAdminConfigurationHelper.cs
- FamilyTypefaceCollection.cs
- TextControl.cs
- EditorAttributeInfo.cs
- JsonDataContract.cs
- XmlDataProvider.cs
- DataGridComponentEditor.cs
- AccessText.cs
- FilterableAttribute.cs
- ValueUnavailableException.cs
- ObjectAssociationEndMapping.cs
- PrintDocument.cs
- DateTimeOffset.cs
- DiscoveryClientRequestChannel.cs
- ServiceControllerDesigner.cs
- SeparatorAutomationPeer.cs
- SystemIPv4InterfaceProperties.cs
- VBCodeProvider.cs
- Validator.cs
- GroupBox.cs
- AuthorizationContext.cs
- Baml2006ReaderSettings.cs
- CompatibleComparer.cs
- WebBrowserNavigatedEventHandler.cs
- mansign.cs
- ValidatorCompatibilityHelper.cs
- TextProviderWrapper.cs
- GetWorkflowTree.cs
- UnauthorizedWebPart.cs
- XmlSchemaComplexContent.cs
- InternalConfigSettingsFactory.cs
- HtmlImage.cs
- DoubleConverter.cs
- LineUtil.cs
- _TransmitFileOverlappedAsyncResult.cs
- StructuralCache.cs
- ActivationServices.cs
- SmiContext.cs
- RootNamespaceAttribute.cs
- ControlCommandSet.cs
- TreeNodeCollectionEditor.cs
- SqlConnectionManager.cs
- BuildResult.cs
- QueuePathEditor.cs
- Buffer.cs
- CodeDesigner.cs
- EntityClientCacheEntry.cs
- GenericUriParser.cs
- MenuItemStyleCollectionEditor.cs
- InstanceDataCollectionCollection.cs
- ContainerControl.cs
- Animatable.cs
- TextFindEngine.cs
- SynchronizingStream.cs