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
- StaticTextPointer.cs
- CheckBoxAutomationPeer.cs
- ResolveRequestResponseAsyncResult.cs
- httpstaticobjectscollection.cs
- SpStreamWrapper.cs
- MonitoringDescriptionAttribute.cs
- InfoCardBinaryReader.cs
- TemplateControlParser.cs
- ModelMemberCollection.cs
- ContentPlaceHolder.cs
- DiffuseMaterial.cs
- InheritanceAttribute.cs
- AsnEncodedData.cs
- EpmTargetTree.cs
- CheckBox.cs
- TextBoxLine.cs
- StorageMappingItemCollection.cs
- DeclarativeCatalogPart.cs
- XpsSerializerWriter.cs
- TransferRequestHandler.cs
- CryptoKeySecurity.cs
- ContextItem.cs
- AdapterUtil.cs
- DbProviderManifest.cs
- Triplet.cs
- ImageAttributes.cs
- XmlSchemaSet.cs
- XmlnsCache.cs
- ServiceOperation.cs
- DragEventArgs.cs
- MetaModel.cs
- LayoutEvent.cs
- DiscreteKeyFrames.cs
- ActivationArguments.cs
- TransformCollection.cs
- CookieParameter.cs
- ResourcePart.cs
- EDesignUtil.cs
- TypeContext.cs
- WindowsRichEditRange.cs
- COM2ComponentEditor.cs
- _UncName.cs
- NamespaceDecl.cs
- AssemblyInfo.cs
- ImageConverter.cs
- AuthenticationConfig.cs
- ContentHostHelper.cs
- HashMembershipCondition.cs
- SoapEnumAttribute.cs
- IdnElement.cs
- NotSupportedException.cs
- xmlfixedPageInfo.cs
- XamlSerializer.cs
- SmiMetaData.cs
- FixedFlowMap.cs
- AssociatedControlConverter.cs
- Composition.cs
- Selection.cs
- ControlBindingsCollection.cs
- BrowserDefinition.cs
- RequestCachingSection.cs
- EventMetadata.cs
- Span.cs
- IDQuery.cs
- SmtpReplyReaderFactory.cs
- TreeNodeStyleCollection.cs
- CodeMethodReturnStatement.cs
- FactoryRecord.cs
- XmlSchemaParticle.cs
- MiniMapControl.xaml.cs
- BoundField.cs
- CapabilitiesSection.cs
- RemoveStoryboard.cs
- EventLogger.cs
- PointLight.cs
- ContextInformation.cs
- ChildrenQuery.cs
- DataServiceConfiguration.cs
- PageFunction.cs
- SelfIssuedAuthRSAPKCS1SignatureFormatter.cs
- DataObjectFieldAttribute.cs
- XmlSchemaResource.cs
- CodeExpressionCollection.cs
- CodePageEncoding.cs
- objectresult_tresulttype.cs
- Empty.cs
- SafeNativeMethods.cs
- BuiltInPermissionSets.cs
- MailAddress.cs
- WebServiceErrorEvent.cs
- XmlSchemaComplexContentRestriction.cs
- TagMapInfo.cs
- AspCompat.cs
- HMACSHA256.cs
- InputGestureCollection.cs
- PeerNameRecord.cs
- _AutoWebProxyScriptHelper.cs
- Drawing.cs
- QuotedPrintableStream.cs
- ProcessThread.cs