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
- FormParameter.cs
- NameValueCollection.cs
- SortedList.cs
- _LazyAsyncResult.cs
- PersonalizationStateInfoCollection.cs
- CodeAttributeArgumentCollection.cs
- ContentHostHelper.cs
- RowUpdatingEventArgs.cs
- SystemIPGlobalStatistics.cs
- HtmlTitle.cs
- TraversalRequest.cs
- PolyQuadraticBezierSegment.cs
- OdbcDataReader.cs
- XsltSettings.cs
- SiteMapSection.cs
- FixedTextView.cs
- SQLDouble.cs
- MessagingDescriptionAttribute.cs
- StrongNameMembershipCondition.cs
- EdmComplexPropertyAttribute.cs
- CodeSubDirectory.cs
- ImageSourceConverter.cs
- XamlPathDataSerializer.cs
- StreamUpgradeAcceptor.cs
- Grant.cs
- GridItemCollection.cs
- ParagraphVisual.cs
- EngineSite.cs
- SplashScreen.cs
- KeyPressEvent.cs
- MappingModelBuildProvider.cs
- PrivilegedConfigurationManager.cs
- VBIdentifierDesigner.xaml.cs
- TypeLoadException.cs
- ThreadNeutralSemaphore.cs
- MimeTypePropertyAttribute.cs
- DataServiceHostFactory.cs
- SerializationFieldInfo.cs
- SlotInfo.cs
- ElementNotAvailableException.cs
- RepeatInfo.cs
- MaskedTextBoxTextEditorDropDown.cs
- CrossSiteScriptingValidation.cs
- AsynchronousChannelMergeEnumerator.cs
- KnownBoxes.cs
- InnerItemCollectionView.cs
- RtfControls.cs
- TaiwanCalendar.cs
- SqlFormatter.cs
- CannotUnloadAppDomainException.cs
- ImageDrawing.cs
- ParserStack.cs
- RuleRef.cs
- Synchronization.cs
- SqlBuilder.cs
- DeferredReference.cs
- ExpressionBuilderCollection.cs
- BufferModeSettings.cs
- SByteConverter.cs
- BitmapMetadataEnumerator.cs
- SoapAttributeAttribute.cs
- ButtonChrome.cs
- DockingAttribute.cs
- EmptyStringExpandableObjectConverter.cs
- MappingSource.cs
- SqlConnectionManager.cs
- ObsoleteAttribute.cs
- PropertyChangeTracker.cs
- x509store.cs
- XmlProcessingInstruction.cs
- TextEffect.cs
- SecurityChannel.cs
- CellParaClient.cs
- NavigationPropertyEmitter.cs
- EdmToObjectNamespaceMap.cs
- XmlAnyAttributeAttribute.cs
- RsaSecurityTokenParameters.cs
- SpecularMaterial.cs
- GridViewColumnCollection.cs
- Operand.cs
- RegexGroup.cs
- XmlSchemaSimpleTypeRestriction.cs
- GenericIdentity.cs
- DataGridRow.cs
- WebBrowserSiteBase.cs
- XmlReflectionImporter.cs
- DependencyPropertyValueSerializer.cs
- ManagedFilter.cs
- SoundPlayer.cs
- BamlLocalizabilityResolver.cs
- TextRange.cs
- ConnectionInterfaceCollection.cs
- FtpCachePolicyElement.cs
- CellTreeSimplifier.cs
- AnonymousIdentificationSection.cs
- XmlSchemaAttributeGroup.cs
- CompiledRegexRunnerFactory.cs
- NavigationProperty.cs
- GridViewPageEventArgs.cs
- UnmanagedMemoryStream.cs