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
- CommonDialog.cs
- ResourceExpressionBuilder.cs
- AngleUtil.cs
- ActivityInstance.cs
- PhonemeConverter.cs
- XmlSerializerOperationBehavior.cs
- Trace.cs
- ApplicationDirectory.cs
- InternalBase.cs
- HostingEnvironmentException.cs
- WmlObjectListAdapter.cs
- CodeSnippetTypeMember.cs
- DrawingDrawingContext.cs
- TextEditorDragDrop.cs
- DecoderFallback.cs
- DocumentEventArgs.cs
- XmlSchemaChoice.cs
- EntityDataSourceState.cs
- SchemaHelper.cs
- LocatorGroup.cs
- ListBindableAttribute.cs
- MouseActionValueSerializer.cs
- OracleSqlParser.cs
- XmlDataSourceNodeDescriptor.cs
- WorkflowServiceBuildProvider.cs
- GroupLabel.cs
- InstanceOwner.cs
- DataKey.cs
- TrackBar.cs
- Menu.cs
- WebControlAdapter.cs
- MultilineStringConverter.cs
- HtmlInputRadioButton.cs
- BindingNavigator.cs
- recordstate.cs
- BindingObserver.cs
- ListenerSessionConnectionReader.cs
- controlskin.cs
- Slider.cs
- IfAction.cs
- SystemIPGlobalStatistics.cs
- EmptyCollection.cs
- AttachedAnnotation.cs
- _OverlappedAsyncResult.cs
- DateTimeConverter.cs
- MemberMaps.cs
- messageonlyhwndwrapper.cs
- OleDbTransaction.cs
- Pkcs7Signer.cs
- DatagridviewDisplayedBandsData.cs
- OpenTypeMethods.cs
- AutomationElement.cs
- CombinedGeometry.cs
- DockPanel.cs
- ScriptRegistrationManager.cs
- CloseSequence.cs
- QueryTreeBuilder.cs
- ServiceHttpHandlerFactory.cs
- UriTemplateLiteralQueryValue.cs
- DateTime.cs
- DocComment.cs
- CryptoHelper.cs
- CellQuery.cs
- DbConnectionPoolGroup.cs
- MultipartIdentifier.cs
- SqlMultiplexer.cs
- Odbc32.cs
- COAUTHINFO.cs
- MenuAdapter.cs
- DesignerRegion.cs
- FileRecordSequenceCompletedAsyncResult.cs
- Stylus.cs
- ImpersonationContext.cs
- TemplateField.cs
- EventDescriptorCollection.cs
- FileIOPermission.cs
- GeneralTransform3DCollection.cs
- DependencyPropertyDescriptor.cs
- MulticastDelegate.cs
- HttpSessionStateBase.cs
- DelegatingTypeDescriptionProvider.cs
- ConfigurationSection.cs
- Single.cs
- TextServicesManager.cs
- DynamicAttribute.cs
- PartialArray.cs
- SqlDataSourceWizardForm.cs
- PlacementWorkspace.cs
- ClientConfigurationSystem.cs
- HtmlInputFile.cs
- GenericEnumConverter.cs
- WSHttpSecurityElement.cs
- HttpModuleCollection.cs
- DependencyObjectPropertyDescriptor.cs
- DropDownList.cs
- DesignerLoader.cs
- RemotingClientProxy.cs
- MetadataUtilsSmi.cs
- NamedServiceModelExtensionCollectionElement.cs
- ListViewItemSelectionChangedEvent.cs