Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Shared / MS / Internal / Generated / BitmapScalingModeValidation.cs / 1305600 / 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
- PersonalizationAdministration.cs
- XamlSerializerUtil.cs
- SqlServer2KCompatibilityAnnotation.cs
- RadioButtonFlatAdapter.cs
- Stackframe.cs
- CryptoKeySecurity.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- RuntimeConfigLKG.cs
- HandoffBehavior.cs
- XmlSchemaCollection.cs
- DataListItem.cs
- UpdatePanelTriggerCollection.cs
- ConfigurationLocation.cs
- Underline.cs
- DSACryptoServiceProvider.cs
- ConstructorNeedsTagAttribute.cs
- LinqDataSourceDeleteEventArgs.cs
- BaseResourcesBuildProvider.cs
- WebPartEventArgs.cs
- ParameterExpression.cs
- EventMappingSettingsCollection.cs
- ExtensionDataObject.cs
- GridViewPageEventArgs.cs
- Mouse.cs
- StrongNameUtility.cs
- HtmlInputHidden.cs
- DataGridTableCollection.cs
- MaterialCollection.cs
- DetailsViewRowCollection.cs
- GeneralEndpointIdentity.cs
- IUnknownConstantAttribute.cs
- GetKeyedHashRequest.cs
- EndOfStreamException.cs
- ArcSegment.cs
- EdgeModeValidation.cs
- DependentList.cs
- MbpInfo.cs
- ObjectTag.cs
- XmlFormatExtensionAttribute.cs
- HttpModuleCollection.cs
- RtType.cs
- HttpGetProtocolImporter.cs
- HtmlControlAdapter.cs
- SHA1CryptoServiceProvider.cs
- ActiveXHost.cs
- NativeCompoundFileAPIs.cs
- XPathNavigatorReader.cs
- XmlSchemaExporter.cs
- Line.cs
- XmlLoader.cs
- NavigatorOutput.cs
- AssemblyLoader.cs
- InputDevice.cs
- Int32Rect.cs
- CatalogPart.cs
- AccessControlList.cs
- Error.cs
- JsonQueryStringConverter.cs
- OutputCacheModule.cs
- BufferedStream.cs
- RuntimeEnvironment.cs
- InvokeHandlers.cs
- TableCell.cs
- ViewCellRelation.cs
- XslCompiledTransform.cs
- HttpApplication.cs
- OdbcTransaction.cs
- TabletDeviceInfo.cs
- BaseCAMarshaler.cs
- ActivityInterfaces.cs
- _AutoWebProxyScriptEngine.cs
- KnownColorTable.cs
- MarkupWriter.cs
- ActionNotSupportedException.cs
- DesignRelation.cs
- FileDetails.cs
- HttpMethodAttribute.cs
- QueryableDataSourceEditData.cs
- DockEditor.cs
- NetworkInterface.cs
- SelfIssuedAuthRSAPKCS1SignatureFormatter.cs
- SystemDropShadowChrome.cs
- XmlNamespaceManager.cs
- AuthorizationPolicyTypeElementCollection.cs
- TaskForm.cs
- SqlTypeConverter.cs
- TabletCollection.cs
- DataSourceXmlElementAttribute.cs
- RegexMatchCollection.cs
- SoapTypeAttribute.cs
- CodeVariableDeclarationStatement.cs
- Common.cs
- ToolboxDataAttribute.cs
- StorageComplexTypeMapping.cs
- ChannelCacheDefaults.cs
- Matrix.cs
- SqlParameterizer.cs
- OpacityConverter.cs
- UserPreferenceChangedEventArgs.cs
- VirtualPathProvider.cs