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
- PolyLineSegmentFigureLogic.cs
- MenuItemCollection.cs
- SmtpTransport.cs
- EntityViewContainer.cs
- RemotingException.cs
- Empty.cs
- AnimationTimeline.cs
- ResXFileRef.cs
- FloaterBaseParagraph.cs
- TextDecorationCollection.cs
- ServiceDesigner.cs
- Constants.cs
- CheckPair.cs
- SmtpFailedRecipientsException.cs
- ErrorRuntimeConfig.cs
- LinqMaximalSubtreeNominator.cs
- ApplicationInfo.cs
- KnownTypesHelper.cs
- ApplicationInterop.cs
- InvalidWMPVersionException.cs
- ListControl.cs
- DropShadowBitmapEffect.cs
- DayRenderEvent.cs
- ListViewItemSelectionChangedEvent.cs
- CustomAttributeFormatException.cs
- DataException.cs
- PersonalizationStateInfoCollection.cs
- NumericPagerField.cs
- VBCodeProvider.cs
- LineInfo.cs
- OrderedDictionaryStateHelper.cs
- XmlnsPrefixAttribute.cs
- SecurityAlgorithmSuiteConverter.cs
- MethodImplAttribute.cs
- Error.cs
- SoapEnumAttribute.cs
- serverconfig.cs
- GridViewSelectEventArgs.cs
- OrderedEnumerableRowCollection.cs
- XmlEntityReference.cs
- FamilyCollection.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- Geometry3D.cs
- SQLSingle.cs
- Rect3D.cs
- ProcessHostConfigUtils.cs
- HttpDigestClientElement.cs
- uribuilder.cs
- RootBuilder.cs
- CounterCreationDataConverter.cs
- ComponentEditorPage.cs
- TryCatch.cs
- DataPointer.cs
- ExtenderProvidedPropertyAttribute.cs
- DateTimeParse.cs
- BinaryConverter.cs
- EntityCommand.cs
- RepeaterDataBoundAdapter.cs
- BreadCrumbTextConverter.cs
- AdornerPresentationContext.cs
- InputScope.cs
- RuntimeResourceSet.cs
- Exceptions.cs
- DataListItem.cs
- IPipelineRuntime.cs
- MarkupExtensionReturnTypeAttribute.cs
- SqlFileStream.cs
- NumberFunctions.cs
- QueryContext.cs
- FixUp.cs
- DataSpaceManager.cs
- PeerDefaultCustomResolverClient.cs
- SafeTokenHandle.cs
- ImageFormat.cs
- BaseServiceProvider.cs
- Profiler.cs
- _ChunkParse.cs
- WmpBitmapDecoder.cs
- SmtpAuthenticationManager.cs
- StructuredProperty.cs
- WsdlParser.cs
- IIS7WorkerRequest.cs
- StaticSiteMapProvider.cs
- DataSourceControl.cs
- TextMetrics.cs
- RelationshipConverter.cs
- AttributeCollection.cs
- Pen.cs
- WithParamAction.cs
- WarningException.cs
- DataMember.cs
- ClientSponsor.cs
- HelpProvider.cs
- RefreshPropertiesAttribute.cs
- AutomationElement.cs
- ResourceDisplayNameAttribute.cs
- rsa.cs
- LinkConverter.cs
- DataTable.cs
- Vector3DAnimationUsingKeyFrames.cs