Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / wpf / src / Shared / MS / Internal / Generated / BitmapScalingModeValidation.cs / 1 / 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
- ThreadAttributes.cs
- Types.cs
- Ray3DHitTestResult.cs
- SystemWebExtensionsSectionGroup.cs
- Vector3DCollectionValueSerializer.cs
- MD5CryptoServiceProvider.cs
- SAPIEngineTypes.cs
- CharEnumerator.cs
- PointCollection.cs
- ToolStripHighContrastRenderer.cs
- Msec.cs
- ExpressionPrefixAttribute.cs
- JoinTreeNode.cs
- GatewayDefinition.cs
- SelectorAutomationPeer.cs
- MethodRental.cs
- BooleanStorage.cs
- NotImplementedException.cs
- MouseGesture.cs
- WebBodyFormatMessageProperty.cs
- SqlCacheDependencyDatabase.cs
- ConfigurationValues.cs
- XmlCDATASection.cs
- GC.cs
- XamlSerializer.cs
- SqlDataSourceView.cs
- precedingsibling.cs
- InfoCardTrace.cs
- StorageEntityContainerMapping.cs
- GrammarBuilderBase.cs
- SqlConnectionFactory.cs
- TimeSpanFormat.cs
- DtrList.cs
- SQLInt16.cs
- SystemWebExtensionsSectionGroup.cs
- BinaryObjectInfo.cs
- XmlText.cs
- PointKeyFrameCollection.cs
- OrderByBuilder.cs
- ContractCodeDomInfo.cs
- TextModifierScope.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- TextEditorSelection.cs
- PeerUnsafeNativeCryptMethods.cs
- SqlGenerator.cs
- Helpers.cs
- DataBoundControlHelper.cs
- AutomationPeer.cs
- AnonymousIdentificationModule.cs
- ProvidePropertyAttribute.cs
- ObjectDataSource.cs
- LookupBindingPropertiesAttribute.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- VirtualPathProvider.cs
- DesignerValidationSummaryAdapter.cs
- ClientFormsIdentity.cs
- CustomTypeDescriptor.cs
- SchemaSetCompiler.cs
- ZoneMembershipCondition.cs
- WebResourceAttribute.cs
- GridItem.cs
- OracleFactory.cs
- HuffModule.cs
- FixedSOMPage.cs
- TemplateField.cs
- LinkedList.cs
- PaintValueEventArgs.cs
- AtomContentProperty.cs
- _ListenerAsyncResult.cs
- ToolStripSeparator.cs
- DeleteMemberBinder.cs
- TableChangeProcessor.cs
- DropShadowBitmapEffect.cs
- ListView.cs
- PointLightBase.cs
- StreamGeometry.cs
- CodeDOMProvider.cs
- SmtpNetworkElement.cs
- GradientStop.cs
- ContentPlaceHolder.cs
- KerberosSecurityTokenProvider.cs
- CheckBoxPopupAdapter.cs
- EventLogger.cs
- UnsafeMethods.cs
- MaskDesignerDialog.cs
- PageContentAsyncResult.cs
- WebPartVerb.cs
- StateChangeEvent.cs
- DocumentReference.cs
- XAMLParseException.cs
- DLinqColumnProvider.cs
- CompositeControl.cs
- OledbConnectionStringbuilder.cs
- TextAdaptor.cs
- BuildDependencySet.cs
- Int64Converter.cs
- Mouse.cs
- UrlMappingsModule.cs
- DeferrableContent.cs
- HttpServerVarsCollection.cs