Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Shared / MS / Internal / Generated / BitmapScalingModeValidation.cs / 1305600 / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- IsolatedStoragePermission.cs
- TextReturnReader.cs
- ServiceDescriptions.cs
- LocalizationComments.cs
- HtmlElement.cs
- BinaryFormatterWriter.cs
- SQLMoney.cs
- SecurityValidationBehavior.cs
- ExpressionSelection.cs
- BaseConfigurationRecord.cs
- OpacityConverter.cs
- COAUTHINFO.cs
- CheckBoxField.cs
- _NetRes.cs
- NotifyInputEventArgs.cs
- RegexTree.cs
- SubMenuStyle.cs
- PtsHost.cs
- COM2ComponentEditor.cs
- LoadMessageLogger.cs
- CompilationLock.cs
- IntegrationExceptionEventArgs.cs
- SystemIPv4InterfaceProperties.cs
- TabPage.cs
- GenericTransactionFlowAttribute.cs
- DirectionalLight.cs
- Emitter.cs
- FixedSOMTableRow.cs
- HttpWebResponse.cs
- XsltSettings.cs
- WindowsScrollBar.cs
- StreamGeometry.cs
- DescendantOverDescendantQuery.cs
- GridItemProviderWrapper.cs
- WebUtil.cs
- Path.cs
- CommandEventArgs.cs
- SettingsPropertyValue.cs
- RelatedPropertyManager.cs
- BooleanFunctions.cs
- DataGridViewTopLeftHeaderCell.cs
- Lazy.cs
- CompilationSection.cs
- PassportPrincipal.cs
- PauseStoryboard.cs
- FontCollection.cs
- LoginUtil.cs
- ToolboxItemFilterAttribute.cs
- LineServices.cs
- TriggerCollection.cs
- TextBoxAutoCompleteSourceConverter.cs
- ProgressBar.cs
- SettingsPropertyWrongTypeException.cs
- DataGridViewColumnEventArgs.cs
- AuthenticationServiceManager.cs
- WindowsListViewItem.cs
- BoolExpr.cs
- SimpleMailWebEventProvider.cs
- SQLMembershipProvider.cs
- NoResizeHandleGlyph.cs
- HttpListenerContext.cs
- DesignColumn.cs
- TableLayoutStyleCollection.cs
- BitmapImage.cs
- DelimitedListTraceListener.cs
- DragStartedEventArgs.cs
- SQLGuid.cs
- GeometryValueSerializer.cs
- Update.cs
- Source.cs
- DirectoryInfo.cs
- AttributeExtensions.cs
- TextChange.cs
- WebFormDesignerActionService.cs
- JournalEntryListConverter.cs
- SqlDataReader.cs
- GridViewEditEventArgs.cs
- SoapElementAttribute.cs
- SafeThemeHandle.cs
- SessionStateModule.cs
- DataGridViewTextBoxCell.cs
- OleAutBinder.cs
- OleDbMetaDataFactory.cs
- AddValidationError.cs
- ChineseLunisolarCalendar.cs
- AssemblyInfo.cs
- UiaCoreApi.cs
- MergeEnumerator.cs
- PerCallInstanceContextProvider.cs
- HwndProxyElementProvider.cs
- Visual3D.cs
- ReadOnlyDictionary.cs
- ExpressionVisitorHelpers.cs
- MaskedTextBox.cs
- MetadataSource.cs
- ToolStripRenderEventArgs.cs
- StatusBarPanel.cs
- MatrixUtil.cs
- SuppressMessageAttribute.cs
- HttpWriter.cs