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
- HtmlAnchor.cs
- StrokeCollectionDefaultValueFactory.cs
- SerializerDescriptor.cs
- BindingManagerDataErrorEventArgs.cs
- UIElementPropertyUndoUnit.cs
- BrushProxy.cs
- SettingsPropertyValue.cs
- DescendantQuery.cs
- TypedReference.cs
- ReferencedType.cs
- SurrogateDataContract.cs
- BinaryQueryOperator.cs
- TrackBar.cs
- FixedSOMTable.cs
- TransformerInfoCollection.cs
- WebPartCloseVerb.cs
- recordstate.cs
- QueryParameter.cs
- DBPropSet.cs
- RectKeyFrameCollection.cs
- MemberAccessException.cs
- DataBinding.cs
- TrustManagerMoreInformation.cs
- OneOfConst.cs
- Monitor.cs
- QueryGeneratorBase.cs
- XPathSelfQuery.cs
- ObjectItemAssemblyLoader.cs
- TextEncodedRawTextWriter.cs
- _SafeNetHandles.cs
- HttpCapabilitiesSectionHandler.cs
- Pair.cs
- XmlSchemaSubstitutionGroup.cs
- SelectedDatesCollection.cs
- XhtmlTextWriter.cs
- ImageBrush.cs
- ToolStripControlHost.cs
- EncodedStreamFactory.cs
- MgmtConfigurationRecord.cs
- SystemIPv6InterfaceProperties.cs
- OdbcPermission.cs
- ToolStripCollectionEditor.cs
- LineSegment.cs
- PackUriHelper.cs
- AssemblyAssociatedContentFileAttribute.cs
- webbrowsersite.cs
- PageParser.cs
- CultureSpecificCharacterBufferRange.cs
- ArrangedElementCollection.cs
- ListChunk.cs
- TripleDESCryptoServiceProvider.cs
- EntityDataSourceWrapper.cs
- DiffuseMaterial.cs
- XmlTextEncoder.cs
- UnionCodeGroup.cs
- SemanticAnalyzer.cs
- LinearQuaternionKeyFrame.cs
- basecomparevalidator.cs
- RefExpr.cs
- BuildProviderUtils.cs
- DbConvert.cs
- ValidationHelper.cs
- HtmlAnchor.cs
- WebPartManager.cs
- RoleManagerSection.cs
- ListViewEditEventArgs.cs
- CodeParameterDeclarationExpressionCollection.cs
- EmptyEnumerable.cs
- StylusPlugin.cs
- DebugInfo.cs
- MachineKeySection.cs
- Compiler.cs
- MessageEncodingBindingElement.cs
- PngBitmapEncoder.cs
- TextTreeTextNode.cs
- SystemIPGlobalStatistics.cs
- BooleanStorage.cs
- SqlDataSourceDesigner.cs
- PageCodeDomTreeGenerator.cs
- PolicyManager.cs
- ToolStripContainerActionList.cs
- ObjectDataSourceStatusEventArgs.cs
- ReachPageContentCollectionSerializer.cs
- CryptoProvider.cs
- RepeatBehavior.cs
- HttpEncoderUtility.cs
- BooleanAnimationUsingKeyFrames.cs
- ColorKeyFrameCollection.cs
- SystemResourceKey.cs
- WebPartHeaderCloseVerb.cs
- Transform3DCollection.cs
- XPathNavigatorReader.cs
- TreeViewBindingsEditorForm.cs
- PrePrepareMethodAttribute.cs
- PointCollection.cs
- Memoizer.cs
- AuthenticationManager.cs
- WebHttpBinding.cs
- FullTextBreakpoint.cs
- ObjectCache.cs