Code:
/ 4.0 / 4.0 / 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. //---------------------------------------------------------------------------- // //// 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
- HMACSHA1.cs
- InputLanguageProfileNotifySink.cs
- QueueProcessor.cs
- DetailsViewRow.cs
- SettingsAttributes.cs
- DispatcherEventArgs.cs
- SendKeys.cs
- CommonDialog.cs
- FileDetails.cs
- LiteralTextContainerControlBuilder.cs
- Group.cs
- GeometryConverter.cs
- XmlCustomFormatter.cs
- FormViewPageEventArgs.cs
- MenuCommand.cs
- AQNBuilder.cs
- X509Certificate.cs
- LineUtil.cs
- PcmConverter.cs
- _NtlmClient.cs
- RbTree.cs
- ToolStripContainerDesigner.cs
- DictionaryEntry.cs
- WaitHandleCannotBeOpenedException.cs
- DelayedRegex.cs
- PathFigure.cs
- AsynchronousChannelMergeEnumerator.cs
- CursorEditor.cs
- FormsAuthentication.cs
- Pen.cs
- OrthographicCamera.cs
- AuthenticationService.cs
- SystemUnicastIPAddressInformation.cs
- ZipIOFileItemStream.cs
- VirtualizingStackPanel.cs
- HtmlShimManager.cs
- TransactionContextValidator.cs
- AdapterDictionary.cs
- ColumnMapCopier.cs
- TypedTableGenerator.cs
- CallSiteHelpers.cs
- UnionExpr.cs
- WebEventTraceProvider.cs
- GestureRecognizer.cs
- NavigationProperty.cs
- BufferedWebEventProvider.cs
- Sql8ExpressionRewriter.cs
- UnsafeNativeMethods.cs
- Line.cs
- Handle.cs
- InputLanguageCollection.cs
- GridViewRowCollection.cs
- ChangeBlockUndoRecord.cs
- NullableDoubleMinMaxAggregationOperator.cs
- PerformanceCounter.cs
- SqlDependencyUtils.cs
- UnsafeNativeMethods.cs
- AppSettings.cs
- ParserStreamGeometryContext.cs
- ArgumentNullException.cs
- Helper.cs
- TextPointer.cs
- ServicePointManagerElement.cs
- SetMemberBinder.cs
- ConversionContext.cs
- DataSourceHelper.cs
- IisTraceWebEventProvider.cs
- SafeArrayRankMismatchException.cs
- ButtonDesigner.cs
- EntityProviderFactory.cs
- wmiprovider.cs
- StoreContentChangedEventArgs.cs
- ItemCheckedEvent.cs
- KeysConverter.cs
- SchemaCollectionPreprocessor.cs
- StatusBarPanelClickEvent.cs
- SqlUserDefinedTypeAttribute.cs
- GeometryConverter.cs
- TransactionState.cs
- VerticalAlignConverter.cs
- HashHelpers.cs
- PasswordDeriveBytes.cs
- FtpWebResponse.cs
- DataGridViewSelectedCellCollection.cs
- mda.cs
- RecordBuilder.cs
- AuthenticationSection.cs
- SqlNotificationEventArgs.cs
- HuffModule.cs
- ListViewTableRow.cs
- WindowsListBox.cs
- CodeObject.cs
- XmlValueConverter.cs
- ApplicationHost.cs
- TagMapInfo.cs
- SemaphoreSlim.cs
- QualificationDataItem.cs
- XmlParser.cs
- QuerySubExprEliminator.cs
- TextCollapsingProperties.cs