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
- PartEditor.cs
- ListenerSingletonConnectionReader.cs
- HierarchicalDataBoundControl.cs
- Int16AnimationBase.cs
- XmlValidatingReader.cs
- ListViewUpdateEventArgs.cs
- DataBindEngine.cs
- BindingList.cs
- Grid.cs
- ArrayTypeMismatchException.cs
- DataGridCell.cs
- TypeContext.cs
- String.cs
- ListBindingHelper.cs
- SiteOfOriginContainer.cs
- ConfigurationManagerHelper.cs
- ConfigurationElementProperty.cs
- SqlNodeTypeOperators.cs
- updateconfighost.cs
- Pkcs9Attribute.cs
- ManagementQuery.cs
- CapiSymmetricAlgorithm.cs
- GeometryCombineModeValidation.cs
- Utils.cs
- SecureEnvironment.cs
- BitmapCache.cs
- TypeContext.cs
- NamedPipeProcessProtocolHandler.cs
- TemplateNameScope.cs
- AmbiguousMatchException.cs
- ChannelFactoryRefCache.cs
- ThaiBuddhistCalendar.cs
- SqlCacheDependencyDatabase.cs
- ConstantExpression.cs
- QueryableDataSourceView.cs
- TreeViewItem.cs
- WsdlInspector.cs
- storepermission.cs
- IsolationInterop.cs
- SecurityPermission.cs
- HostVisual.cs
- WindowsSlider.cs
- BoundPropertyEntry.cs
- PointLight.cs
- DesignerLoader.cs
- TextDecorationCollection.cs
- PageThemeBuildProvider.cs
- ToolStripSettings.cs
- XmlDictionaryReaderQuotasElement.cs
- DrawListViewItemEventArgs.cs
- TableLayout.cs
- SHA512Managed.cs
- RequestCachePolicyConverter.cs
- AddInStore.cs
- SchemaElementLookUpTable.cs
- DesignerAutoFormat.cs
- GlyphTypeface.cs
- EventItfInfo.cs
- QueryAccessibilityHelpEvent.cs
- NoneExcludedImageIndexConverter.cs
- ParameterElementCollection.cs
- LicenseException.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- XmlElement.cs
- HtmlImage.cs
- ErrorRuntimeConfig.cs
- FlowNode.cs
- TreeViewImageKeyConverter.cs
- ViewLoader.cs
- CheckedPointers.cs
- RuntimeTrackingProfile.cs
- LiteralControl.cs
- DrawingContextWalker.cs
- CssTextWriter.cs
- TreeViewTemplateSelector.cs
- SiteMapSection.cs
- PersonalizationStateInfo.cs
- AuthenticationService.cs
- Size3DValueSerializer.cs
- EventlogProvider.cs
- Context.cs
- Evidence.cs
- ExpressionServices.cs
- SpecialFolderEnumConverter.cs
- HierarchicalDataSourceControl.cs
- CapabilitiesAssignment.cs
- EntityType.cs
- ScrollContentPresenter.cs
- FieldNameLookup.cs
- AffineTransform3D.cs
- PriorityRange.cs
- LiteralControl.cs
- BufferedResponseStream.cs
- ProviderConnectionPointCollection.cs
- SpeechSynthesizer.cs
- UIElementAutomationPeer.cs
- PathSegment.cs
- ServiceBehaviorElementCollection.cs
- CollectionView.cs
- SettingsSection.cs