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
- SelectionListComponentEditor.cs
- KnownBoxes.cs
- httpapplicationstate.cs
- TaiwanLunisolarCalendar.cs
- MultiView.cs
- Duration.cs
- Simplifier.cs
- FunctionQuery.cs
- DataGridTableCollection.cs
- WindowsComboBox.cs
- FormatPage.cs
- TableColumn.cs
- SqlDataSourceFilteringEventArgs.cs
- DataGridViewSelectedRowCollection.cs
- DuplexChannelFactory.cs
- ClientRuntimeConfig.cs
- EventPrivateKey.cs
- CalendarAutoFormatDialog.cs
- ParallelSeparator.xaml.cs
- MyContact.cs
- HwndSource.cs
- Asn1IntegerConverter.cs
- XmlSchemaSimpleContentRestriction.cs
- WindowsFormsHelpers.cs
- HeaderedItemsControl.cs
- HttpApplicationStateWrapper.cs
- XslCompiledTransform.cs
- FolderBrowserDialogDesigner.cs
- UndoEngine.cs
- CategoryGridEntry.cs
- SafeHandles.cs
- CodeIterationStatement.cs
- StreamGeometryContext.cs
- DiagnosticStrings.cs
- RecordBuilder.cs
- NetDispatcherFaultException.cs
- SafeLibraryHandle.cs
- ExclusiveCanonicalizationTransform.cs
- _emptywebproxy.cs
- XPathNodeList.cs
- propertytag.cs
- RowUpdatedEventArgs.cs
- ModelServiceImpl.cs
- RelOps.cs
- LayoutSettings.cs
- QueueProcessor.cs
- EventLogPermission.cs
- CodeLinePragma.cs
- CatalogZone.cs
- _SingleItemRequestCache.cs
- ClaimTypes.cs
- TextModifier.cs
- ScriptControlDescriptor.cs
- SubclassTypeValidator.cs
- WindowsFormsSynchronizationContext.cs
- NativeMethods.cs
- DeclarativeExpressionConditionDeclaration.cs
- DataGridViewBindingCompleteEventArgs.cs
- QilName.cs
- BamlLocalizer.cs
- StatusStrip.cs
- AlphaSortedEnumConverter.cs
- EntityFrameworkVersions.cs
- RouteValueDictionary.cs
- OleDbCommandBuilder.cs
- SafeWaitHandle.cs
- FillRuleValidation.cs
- AlphabeticalEnumConverter.cs
- EncoderExceptionFallback.cs
- QueryStringConverter.cs
- followingquery.cs
- WebPartsSection.cs
- UrlAuthorizationModule.cs
- MemberAccessException.cs
- PeerPresenceInfo.cs
- KeyValuePair.cs
- KerberosRequestorSecurityToken.cs
- ErrorActivity.cs
- DirectoryNotFoundException.cs
- DateTimeFormatInfoScanner.cs
- ServicePoint.cs
- EditorServiceContext.cs
- FilterableAttribute.cs
- PerformanceCounterLib.cs
- LogSwitch.cs
- ReadOnlyCollection.cs
- HtmlShim.cs
- MatrixAnimationBase.cs
- SettingsAttributes.cs
- NavigationHelper.cs
- Oid.cs
- SQLStringStorage.cs
- DataGridCaption.cs
- DummyDataSource.cs
- ClipboardData.cs
- ToolboxDataAttribute.cs
- FrameworkTextComposition.cs
- ConfigurationElement.cs
- SimpleApplicationHost.cs
- SQLBinary.cs