Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- StreamGeometry.cs
- ResolveCriteriaApril2005.cs
- Win32PrintDialog.cs
- Char.cs
- ControlBuilderAttribute.cs
- CodeLabeledStatement.cs
- ITextView.cs
- DoubleMinMaxAggregationOperator.cs
- ObjRef.cs
- TextSyndicationContent.cs
- ParameterModifier.cs
- ControlValuePropertyAttribute.cs
- ActivityPreviewDesigner.cs
- EventRecord.cs
- SequentialUshortCollection.cs
- ColorContext.cs
- DetailsViewRow.cs
- SoapHeaderAttribute.cs
- CompilerTypeWithParams.cs
- RemoteWebConfigurationHostStream.cs
- DocumentEventArgs.cs
- XamlInt32CollectionSerializer.cs
- LabelAutomationPeer.cs
- SspiNegotiationTokenAuthenticatorState.cs
- ProfileManager.cs
- ValueOfAction.cs
- ExpressionServices.cs
- Rethrow.cs
- Matrix3DConverter.cs
- DSACryptoServiceProvider.cs
- NumericExpr.cs
- SerTrace.cs
- GenerateTemporaryAssemblyTask.cs
- CompilerGlobalScopeAttribute.cs
- DrawListViewColumnHeaderEventArgs.cs
- FrameworkContentElement.cs
- LockCookie.cs
- NetworkInformationException.cs
- FilePresentation.cs
- XmlAttributeAttribute.cs
- DataGridRowsPresenter.cs
- EntitySetDataBindingList.cs
- HwndProxyElementProvider.cs
- HttpInputStream.cs
- GcHandle.cs
- DbConnectionPool.cs
- Application.cs
- NestPullup.cs
- DataDocumentXPathNavigator.cs
- OracleDataReader.cs
- ResourceDictionary.cs
- DynamicPropertyHolder.cs
- DiffuseMaterial.cs
- UnknownBitmapEncoder.cs
- ClassHandlersStore.cs
- SimpleNameService.cs
- X509Certificate2Collection.cs
- SqlAliasesReferenced.cs
- DataGridViewRowsAddedEventArgs.cs
- EnvironmentPermission.cs
- TextSegment.cs
- ProjectionPathBuilder.cs
- FastEncoder.cs
- ContainerSelectorGlyph.cs
- RowsCopiedEventArgs.cs
- ErrorWebPart.cs
- NestedContainer.cs
- GenericUI.cs
- DocumentsTrace.cs
- DomainUpDown.cs
- EventLogSession.cs
- XmlSchemaAny.cs
- ComplexPropertyEntry.cs
- RuleSettingsCollection.cs
- OleDbConnectionInternal.cs
- __Error.cs
- UnsafeNetInfoNativeMethods.cs
- SafeNativeMethodsOther.cs
- MenuRenderer.cs
- ApplicationDirectoryMembershipCondition.cs
- ContainerSelectorBehavior.cs
- SystemKeyConverter.cs
- XpsInterleavingPolicy.cs
- CodeMemberField.cs
- XmlSecureResolver.cs
- DataFormats.cs
- Size.cs
- WinEventQueueItem.cs
- CapabilitiesUse.cs
- EraserBehavior.cs
- NativeWrapper.cs
- BindingContext.cs
- HierarchicalDataBoundControlAdapter.cs
- IndentedWriter.cs
- VolatileEnlistmentMultiplexing.cs
- DbExpressionVisitor.cs
- TextRangeAdaptor.cs
- CommonDialog.cs
- SemaphoreSecurity.cs
- RC2CryptoServiceProvider.cs