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
- VersionedStreamOwner.cs
- HttpCachePolicy.cs
- ScrollBar.cs
- RegexMatchCollection.cs
- TextEndOfSegment.cs
- SecureUICommand.cs
- SqlCaseSimplifier.cs
- WebPartVerb.cs
- updatecommandorderer.cs
- SizeValueSerializer.cs
- Membership.cs
- AssociatedControlConverter.cs
- GroupBox.cs
- WorkflowServiceBehavior.cs
- WorkflowCompensationBehavior.cs
- LinkDesigner.cs
- ConsoleCancelEventArgs.cs
- AutoCompleteStringCollection.cs
- PublisherMembershipCondition.cs
- OpenTypeLayout.cs
- TextSelectionHelper.cs
- TextTreePropertyUndoUnit.cs
- XLinq.cs
- X509Certificate.cs
- Attachment.cs
- MachineKeyValidationConverter.cs
- AlphaSortedEnumConverter.cs
- SqlErrorCollection.cs
- XslException.cs
- LassoHelper.cs
- login.cs
- Query.cs
- AutomationProperties.cs
- ProfileManager.cs
- Selector.cs
- DesignerSerializerAttribute.cs
- FixedLineResult.cs
- TcpPortSharing.cs
- SystemIPGlobalStatistics.cs
- RawTextInputReport.cs
- SystemWebSectionGroup.cs
- TranslateTransform.cs
- DataFormats.cs
- SQLBytes.cs
- CommunicationObjectAbortedException.cs
- COM2FontConverter.cs
- HttpsTransportBindingElement.cs
- ElementProxy.cs
- CrossAppDomainChannel.cs
- PublishLicense.cs
- XmlTextReaderImplHelpers.cs
- Viewport3DVisual.cs
- ControlIdConverter.cs
- InputScope.cs
- DataError.cs
- cookiecollection.cs
- GregorianCalendar.cs
- PrintDialog.cs
- XmlAnyAttributeAttribute.cs
- UnsafeCollabNativeMethods.cs
- SiteMapPath.cs
- HttpPostedFile.cs
- PlatformNotSupportedException.cs
- SchemaImporterExtension.cs
- SystemIdentity.cs
- DataRowChangeEvent.cs
- StickyNoteHelper.cs
- QilReplaceVisitor.cs
- DoubleAnimationClockResource.cs
- MemberListBinding.cs
- DodSequenceMerge.cs
- AssemblyInfo.cs
- BrushMappingModeValidation.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- EnumerableRowCollection.cs
- Model3DGroup.cs
- Binding.cs
- ExpandCollapsePattern.cs
- TextEditorParagraphs.cs
- infer.cs
- XmlAnyElementAttribute.cs
- Part.cs
- UdpSocketReceiveManager.cs
- FolderLevelBuildProviderCollection.cs
- __TransparentProxy.cs
- Viewport3DAutomationPeer.cs
- ViewStateException.cs
- EntityDataSourceUtil.cs
- GeometryGroup.cs
- Token.cs
- DoubleSumAggregationOperator.cs
- HyperLinkField.cs
- _FixedSizeReader.cs
- EnumMember.cs
- SimplePropertyEntry.cs
- PerformanceCounterLib.cs
- NewItemsContextMenuStrip.cs
- IUnknownConstantAttribute.cs
- CallbackValidatorAttribute.cs
- PropertyGridView.cs