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
- AuthenticationConfig.cs
- StrokeCollection2.cs
- KeyInterop.cs
- ByteStorage.cs
- DesigntimeLicenseContext.cs
- SqlNodeAnnotations.cs
- DataSourceXmlElementAttribute.cs
- EventBuilder.cs
- TableParaClient.cs
- Converter.cs
- DelegatingTypeDescriptionProvider.cs
- InvokeBinder.cs
- TiffBitmapDecoder.cs
- JavaScriptSerializer.cs
- WebPartZoneCollection.cs
- CollectionChangeEventArgs.cs
- Point3DKeyFrameCollection.cs
- DefaultTypeArgumentAttribute.cs
- TypeTypeConverter.cs
- TransactionContextValidator.cs
- HostExecutionContextManager.cs
- ExpandedWrapper.cs
- UTF7Encoding.cs
- ClipboardData.cs
- JoinCqlBlock.cs
- DataGridAutoFormatDialog.cs
- OleDbError.cs
- StorageFunctionMapping.cs
- SatelliteContractVersionAttribute.cs
- DecoratedNameAttribute.cs
- DragSelectionMessageFilter.cs
- ProcessInfo.cs
- ChildTable.cs
- ADRoleFactory.cs
- ReadOnlyHierarchicalDataSourceView.cs
- CollectionConverter.cs
- WorkflowLayouts.cs
- Point3DAnimationUsingKeyFrames.cs
- NavigationWindowAutomationPeer.cs
- DropTarget.cs
- EditorPart.cs
- DeleteWorkflowOwnerCommand.cs
- ResourceDescriptionAttribute.cs
- WindowsStatusBar.cs
- PopOutPanel.cs
- UserNameServiceElement.cs
- _FixedSizeReader.cs
- NetTcpSectionData.cs
- ICollection.cs
- DebugView.cs
- HashRepartitionEnumerator.cs
- SignalGate.cs
- Rect.cs
- SRDisplayNameAttribute.cs
- HealthMonitoringSectionHelper.cs
- HybridObjectCache.cs
- Stroke.cs
- Pool.cs
- ConfigurationElement.cs
- ButtonField.cs
- HttpTransportElement.cs
- XmlQueryTypeFactory.cs
- HtmlMeta.cs
- XmlAnyAttributeAttribute.cs
- httpapplicationstate.cs
- RedistVersionInfo.cs
- ACE.cs
- ProfileGroupSettings.cs
- ExpressionConverter.cs
- DocumentOutline.cs
- PackagePartCollection.cs
- FreezableCollection.cs
- RemotingSurrogateSelector.cs
- ListBoxItemAutomationPeer.cs
- Knowncolors.cs
- Crc32.cs
- HotSpot.cs
- EndpointInstanceProvider.cs
- CustomErrorCollection.cs
- CapabilitiesRule.cs
- RedBlackList.cs
- Debugger.cs
- SspiWrapper.cs
- HostExecutionContextManager.cs
- TemplateBaseAction.cs
- FrameworkTextComposition.cs
- IntegrationExceptionEventArgs.cs
- PolicyDesigner.cs
- SerializationAttributes.cs
- ElementUtil.cs
- SetStateEventArgs.cs
- FixedSOMImage.cs
- dbdatarecord.cs
- TabletDevice.cs
- AppSettingsExpressionEditor.cs
- SetIterators.cs
- Calendar.cs
- Point4D.cs
- ObjectDataSource.cs
- Int64AnimationUsingKeyFrames.cs