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
- FrameDimension.cs
- WsdlParser.cs
- State.cs
- WebPartConnectionsDisconnectVerb.cs
- EditBehavior.cs
- ScriptDescriptor.cs
- InvalidProgramException.cs
- Int64AnimationBase.cs
- QilParameter.cs
- Compiler.cs
- PersonalizableTypeEntry.cs
- MembershipPasswordException.cs
- OutputCacheProfile.cs
- OdbcStatementHandle.cs
- Events.cs
- DictationGrammar.cs
- TypedColumnHandler.cs
- DataGridViewSelectedRowCollection.cs
- InternalConfigSettingsFactory.cs
- DrawTreeNodeEventArgs.cs
- DataStreams.cs
- FixedTextPointer.cs
- CultureNotFoundException.cs
- BitmapEffectRenderDataResource.cs
- BinHexEncoder.cs
- MainMenu.cs
- AddInServer.cs
- ElementHostAutomationPeer.cs
- DataGridRow.cs
- MoveSizeWinEventHandler.cs
- XPathBuilder.cs
- ResourceAssociationSetEnd.cs
- AsyncStreamReader.cs
- UniqueConstraint.cs
- StyleBamlRecordReader.cs
- SoapAttributeAttribute.cs
- ExceptionUtil.cs
- BindingExpressionBase.cs
- ColorPalette.cs
- XmlUtf8RawTextWriter.cs
- IconHelper.cs
- VirtualPath.cs
- HttpRequest.cs
- ClientFormsIdentity.cs
- DataSourceXmlSerializationAttribute.cs
- EntityDataSourceSelectingEventArgs.cs
- Encoder.cs
- StreamedWorkflowDefinitionContext.cs
- TraceRecord.cs
- DataViewListener.cs
- DataGridViewCheckBoxCell.cs
- GenericQueueSurrogate.cs
- ChangePassword.cs
- RadioButtonRenderer.cs
- DataContractSerializerServiceBehavior.cs
- SingleConverter.cs
- XhtmlConformanceSection.cs
- TimeoutException.cs
- SuppressIldasmAttribute.cs
- WindowsRebar.cs
- WarningException.cs
- BindableAttribute.cs
- PersianCalendar.cs
- ErrorProvider.cs
- HTTPRemotingHandler.cs
- ControlBindingsCollection.cs
- PhysicalAddress.cs
- ResolveNextArgumentWorkItem.cs
- DocumentXmlWriter.cs
- CodeDelegateCreateExpression.cs
- HttpEncoder.cs
- SharedConnectionInfo.cs
- ToolboxItem.cs
- ChangeProcessor.cs
- ObjectRef.cs
- DrawingCollection.cs
- GradientBrush.cs
- ForeignKeyFactory.cs
- PeerNearMe.cs
- _FtpDataStream.cs
- ExpressionValueEditor.cs
- SchemaImporter.cs
- InputLanguageManager.cs
- NameTable.cs
- StackOverflowException.cs
- AutomationEvent.cs
- Margins.cs
- PriorityQueue.cs
- DefaultBinder.cs
- FixUpCollection.cs
- DataTable.cs
- DataPagerFieldCollection.cs
- ListDictionary.cs
- MultiByteCodec.cs
- IsolatedStorageSecurityState.cs
- FontStyles.cs
- MSG.cs
- ImageInfo.cs
- PrivateUnsafeNativeCompoundFileMethods.cs
- TypeLibConverter.cs