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
- XmlSerializerVersionAttribute.cs
- Font.cs
- TextHidden.cs
- DefaultMemberAttribute.cs
- ClientCultureInfo.cs
- FillBehavior.cs
- DrawingServices.cs
- EventWaitHandle.cs
- CommandLineParser.cs
- HandledEventArgs.cs
- RootBrowserWindowAutomationPeer.cs
- ServicesUtilities.cs
- RenderingEventArgs.cs
- Symbol.cs
- BitmapSizeOptions.cs
- FloaterParaClient.cs
- DetailsViewRow.cs
- ApplicationId.cs
- KeyProperty.cs
- FactoryMaker.cs
- FileReader.cs
- ColorTranslator.cs
- SerialPort.cs
- UriParserTemplates.cs
- XPathParser.cs
- XmlSchemaValidator.cs
- MultiPageTextView.cs
- Not.cs
- DialogWindow.cs
- DefaultParameterValueAttribute.cs
- TwoPhaseCommit.cs
- Interlocked.cs
- Int32AnimationUsingKeyFrames.cs
- NetPipeSectionData.cs
- Int32.cs
- PlaceHolder.cs
- SoapHeader.cs
- StateMachineWorkflowDesigner.cs
- MetadataPropertyAttribute.cs
- Transform3DCollection.cs
- DataMemberFieldConverter.cs
- Rotation3DKeyFrameCollection.cs
- SessionStateSection.cs
- XPathDocumentBuilder.cs
- Scene3D.cs
- MissingManifestResourceException.cs
- Rotation3D.cs
- ConfigurationElement.cs
- Selection.cs
- RowBinding.cs
- PartialClassGenerationTask.cs
- UserControlFileEditor.cs
- Int16AnimationUsingKeyFrames.cs
- ISAPIWorkerRequest.cs
- Queue.cs
- PropertyGroupDescription.cs
- PeerContact.cs
- ContactManager.cs
- Selector.cs
- SpotLight.cs
- RequestCachingSection.cs
- Deflater.cs
- ColumnMapCopier.cs
- EncoderBestFitFallback.cs
- RowParagraph.cs
- KnownBoxes.cs
- SkewTransform.cs
- SignatureGenerator.cs
- Choices.cs
- UnauthorizedAccessException.cs
- ColumnPropertiesGroup.cs
- AsyncStreamReader.cs
- StackBuilderSink.cs
- WebPartEditorOkVerb.cs
- PermissionSet.cs
- OutOfMemoryException.cs
- DecimalAverageAggregationOperator.cs
- CodeDOMProvider.cs
- AppDomainManager.cs
- SystemColors.cs
- ChangeBlockUndoRecord.cs
- FieldCollectionEditor.cs
- ControlBindingsCollection.cs
- PropertySet.cs
- ReadOnlyHierarchicalDataSource.cs
- PartialCachingAttribute.cs
- ExtensionSimplifierMarkupObject.cs
- SectionVisual.cs
- SmiXetterAccessMap.cs
- URLAttribute.cs
- GridViewSelectEventArgs.cs
- ArcSegment.cs
- NoneExcludedImageIndexConverter.cs
- ValueChangedEventManager.cs
- ColumnResizeAdorner.cs
- DetailsViewModeEventArgs.cs
- PolyQuadraticBezierSegment.cs
- Run.cs
- ToolStripButton.cs
- HttpBrowserCapabilitiesWrapper.cs