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
- RemoteWebConfigurationHost.cs
- KeyboardNavigation.cs
- CalendarItem.cs
- FullTrustAssemblyCollection.cs
- ITextView.cs
- DataRecordInternal.cs
- URL.cs
- SmiEventSink.cs
- _PooledStream.cs
- LayoutUtils.cs
- nulltextcontainer.cs
- dsa.cs
- XamlStyleSerializer.cs
- ResourceCategoryAttribute.cs
- HtmlForm.cs
- ListView.cs
- ReachDocumentReferenceSerializer.cs
- Aggregates.cs
- WorkflowQueue.cs
- TypeBuilderInstantiation.cs
- OperationFormatStyle.cs
- QueueProcessor.cs
- SubMenuStyleCollection.cs
- XPathNode.cs
- CacheEntry.cs
- Win32.cs
- MetadataArtifactLoaderComposite.cs
- TransformerTypeCollection.cs
- MatchingStyle.cs
- InstanceOwnerException.cs
- RSAProtectedConfigurationProvider.cs
- ReadContentAsBinaryHelper.cs
- SudsWriter.cs
- TextReader.cs
- CustomServiceCredentials.cs
- PropertyCondition.cs
- SqlInternalConnectionSmi.cs
- XmlRawWriter.cs
- EventSinkActivityDesigner.cs
- ContractMapping.cs
- WindowCollection.cs
- TypeSemantics.cs
- LineSegment.cs
- CompilerInfo.cs
- StandardToolWindows.cs
- HtmlElement.cs
- ToolboxDataAttribute.cs
- And.cs
- Opcode.cs
- TemplateNameScope.cs
- Collection.cs
- SoapIncludeAttribute.cs
- TypeReference.cs
- BCLDebug.cs
- DelegateSerializationHolder.cs
- DynamicILGenerator.cs
- XmlElement.cs
- FindCriteria.cs
- ControlAdapter.cs
- XPathPatternParser.cs
- ToolStripPanelRenderEventArgs.cs
- MetadataItemCollectionFactory.cs
- StorageMappingItemCollection.cs
- ConfigurationLocationCollection.cs
- Quad.cs
- PeerNameRegistration.cs
- TemplateEditingFrame.cs
- PriorityBindingExpression.cs
- NonBatchDirectoryCompiler.cs
- ColumnPropertiesGroup.cs
- ErrorProvider.cs
- KeyConverter.cs
- DeclaredTypeElementCollection.cs
- TdsRecordBufferSetter.cs
- printdlgexmarshaler.cs
- Schema.cs
- ErrorBehavior.cs
- Win32SafeHandles.cs
- SizeConverter.cs
- MetaModel.cs
- PropertyDescriptorCollection.cs
- ApplicationServicesHostFactory.cs
- EditorAttribute.cs
- SafeLocalMemHandle.cs
- PixelShader.cs
- ObjectStateFormatter.cs
- _StreamFramer.cs
- HybridObjectCache.cs
- FlowDocumentView.cs
- WebBrowserDocumentCompletedEventHandler.cs
- ContentElementAutomationPeer.cs
- CornerRadius.cs
- XmlAttributeOverrides.cs
- PolicyLevel.cs
- ExpressionBinding.cs
- Assert.cs
- Ipv6Element.cs
- ProfileModule.cs
- ComponentManagerBroker.cs
- TextElementEnumerator.cs