Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Shared / MS / Internal / Generated / BitmapScalingModeValidation.cs / 2 / BitmapScalingModeValidation.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 { 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 IsBitmapScalingModeValid(object valueObject) { BitmapScalingMode value = (BitmapScalingMode) valueObject; return (value == BitmapScalingMode.Unspecified) || (value == BitmapScalingMode.LowQuality) || (value == BitmapScalingMode.HighQuality) || (value == BitmapScalingMode.Linear) || (value == BitmapScalingMode.Fant) || (value == BitmapScalingMode.NearestNeighbor); } } } // 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 { 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 IsBitmapScalingModeValid(object valueObject) { BitmapScalingMode value = (BitmapScalingMode) valueObject; return (value == BitmapScalingMode.Unspecified) || (value == BitmapScalingMode.LowQuality) || (value == BitmapScalingMode.HighQuality) || (value == BitmapScalingMode.Linear) || (value == BitmapScalingMode.Fant) || (value == BitmapScalingMode.NearestNeighbor); } } } // 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
- ReferentialConstraint.cs
- EnumMemberAttribute.cs
- ParseHttpDate.cs
- HybridCollection.cs
- XslTransform.cs
- EndEvent.cs
- NavigationWindow.cs
- ListBoxItem.cs
- ListViewItemMouseHoverEvent.cs
- LayoutEngine.cs
- MappingMetadataHelper.cs
- Html32TextWriter.cs
- TranslateTransform.cs
- ADMembershipUser.cs
- PaperSource.cs
- InputBinding.cs
- HtmlWindow.cs
- SqlDataSourceFilteringEventArgs.cs
- OleDbSchemaGuid.cs
- RemotingServices.cs
- DictionarySectionHandler.cs
- XmlAnyElementAttributes.cs
- FeatureSupport.cs
- LightweightEntityWrapper.cs
- FaultDescriptionCollection.cs
- ImageMap.cs
- DBCommandBuilder.cs
- listitem.cs
- XhtmlBasicLinkAdapter.cs
- SafeRightsManagementEnvironmentHandle.cs
- MenuStrip.cs
- InstanceLockedException.cs
- ClrProviderManifest.cs
- Operators.cs
- DataContractJsonSerializer.cs
- RemotingServices.cs
- List.cs
- XpsViewerException.cs
- MeasurementDCInfo.cs
- ObsoleteAttribute.cs
- Int16KeyFrameCollection.cs
- BaseTemplateParser.cs
- TextContainerChangeEventArgs.cs
- ChannelFactoryBase.cs
- GeneralTransform3DTo2D.cs
- DataContractSet.cs
- DesignTimeTemplateParser.cs
- VerificationAttribute.cs
- UserNamePasswordValidator.cs
- HttpResponseHeader.cs
- DbModificationCommandTree.cs
- NavigationWindow.cs
- ComUdtElementCollection.cs
- EventLogTraceListener.cs
- RowBinding.cs
- XamlSerializationHelper.cs
- AsymmetricSignatureDeformatter.cs
- GeometryModel3D.cs
- FlowDocumentScrollViewerAutomationPeer.cs
- ClientBuildManagerTypeDescriptionProviderBridge.cs
- CapabilitiesPattern.cs
- WindowsListViewItem.cs
- SoapSchemaExporter.cs
- ControlLocalizer.cs
- HashCodeCombiner.cs
- LinkDesigner.cs
- securitycriticaldataClass.cs
- EditCommandColumn.cs
- SatelliteContractVersionAttribute.cs
- ClientConvert.cs
- XmlObjectSerializerWriteContextComplexJson.cs
- DeadCharTextComposition.cs
- mediaclock.cs
- ScrollProviderWrapper.cs
- RawStylusInputReport.cs
- COM2ExtendedTypeConverter.cs
- ThreadStateException.cs
- InheritanceUI.cs
- WindowsListViewItemCheckBox.cs
- XmlSchemaExternal.cs
- CommandHelper.cs
- DeflateStream.cs
- ConstraintConverter.cs
- TextPointer.cs
- DeclarativeCatalogPart.cs
- SymDocumentType.cs
- WindowsRichEdit.cs
- HiddenField.cs
- HtmlContainerControl.cs
- InvalidPrinterException.cs
- ProfileServiceManager.cs
- XmlCustomFormatter.cs
- AttributeQuery.cs
- Config.cs
- WsdlImporterElement.cs
- DataConnectionHelper.cs
- Selection.cs
- CodeDomSerializer.cs
- DnsCache.cs
- AddIn.cs