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
- FlagPanel.cs
- ObjectAnimationBase.cs
- URLIdentityPermission.cs
- AvTrace.cs
- ClientBuildManager.cs
- PolicyLevel.cs
- UserPersonalizationStateInfo.cs
- oledbmetadatacollectionnames.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- Point3DCollectionConverter.cs
- FreezableOperations.cs
- ParagraphVisual.cs
- ReaderWriterLockWrapper.cs
- EmptyReadOnlyDictionaryInternal.cs
- MarshalDirectiveException.cs
- TreeChangeInfo.cs
- WebDescriptionAttribute.cs
- XpsSerializerWriter.cs
- SqlParameterizer.cs
- DataRow.cs
- SingleQueryOperator.cs
- UniformGrid.cs
- ItemContainerGenerator.cs
- DrawingState.cs
- ByteStreamMessageEncoder.cs
- MsmqIntegrationChannelListener.cs
- ScriptReferenceBase.cs
- DataTableNameHandler.cs
- IsolatedStorageFileStream.cs
- XmlCustomFormatter.cs
- OpCodes.cs
- EventLogger.cs
- FormsAuthenticationModule.cs
- WindowsClientCredential.cs
- TreeNodeConverter.cs
- ValueTypeFixupInfo.cs
- JulianCalendar.cs
- LogLogRecordEnumerator.cs
- StylusButton.cs
- OrderedHashRepartitionStream.cs
- ElementProxy.cs
- HostedNamedPipeTransportManager.cs
- CodeExporter.cs
- XmlSchemaSet.cs
- AssemblyHash.cs
- EventProviderWriter.cs
- TextEditorTyping.cs
- SelectionEditingBehavior.cs
- ConnectionsZoneAutoFormat.cs
- EdmConstants.cs
- MenuBase.cs
- ThrowHelper.cs
- ProfilePropertySettings.cs
- WebPartZone.cs
- ActivityDesignerHighlighter.cs
- RegexCode.cs
- BevelBitmapEffect.cs
- XpsColorContext.cs
- NavigationProgressEventArgs.cs
- ConfigXmlCDataSection.cs
- Tokenizer.cs
- OnOperation.cs
- TransformerInfoCollection.cs
- TemplateControlCodeDomTreeGenerator.cs
- Function.cs
- WebCategoryAttribute.cs
- KeyedPriorityQueue.cs
- MouseButtonEventArgs.cs
- MasterPageParser.cs
- FormViewInsertedEventArgs.cs
- QueryReaderSettings.cs
- Timer.cs
- ContextStaticAttribute.cs
- ColorInterpolationModeValidation.cs
- DockingAttribute.cs
- VBIdentifierDesigner.xaml.cs
- ValueType.cs
- ArrayWithOffset.cs
- ListViewTableRow.cs
- NamedObject.cs
- RequestTimeoutManager.cs
- EditorOptionAttribute.cs
- InkCanvasInnerCanvas.cs
- ItemList.cs
- SafeViewOfFileHandle.cs
- _UriSyntax.cs
- Model3DGroup.cs
- Socket.cs
- PersonalizationDictionary.cs
- ExtensionFile.cs
- SQLInt16Storage.cs
- ApplicationManager.cs
- BaseUriHelper.cs
- CapacityStreamGeometryContext.cs
- ComPlusThreadInitializer.cs
- ProxySimple.cs
- FontSource.cs
- InkCanvasAutomationPeer.cs
- ViewBase.cs
- DataGridColumn.cs