Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / Shared / MS / Internal / Generated / ColorInterpolationModeValidation.cs / 1 / ColorInterpolationModeValidation.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 IsColorInterpolationModeValid(object valueObject) { ColorInterpolationMode value = (ColorInterpolationMode) valueObject; return (value == ColorInterpolationMode.ScRgbLinearInterpolation) || (value == ColorInterpolationMode.SRgbLinearInterpolation); } } } // 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 IsColorInterpolationModeValid(object valueObject) { ColorInterpolationMode value = (ColorInterpolationMode) valueObject; return (value == ColorInterpolationMode.ScRgbLinearInterpolation) || (value == ColorInterpolationMode.SRgbLinearInterpolation); } } } // 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
- OpCellTreeNode.cs
- ControlDesigner.cs
- CheckBoxBaseAdapter.cs
- MediaElementAutomationPeer.cs
- EnumBuilder.cs
- ListView.cs
- CustomCredentialPolicy.cs
- X509CertificateCollection.cs
- MetadataCollection.cs
- CustomCategoryAttribute.cs
- CodeIdentifiers.cs
- BinaryFormatterWriter.cs
- Point3DIndependentAnimationStorage.cs
- DelegatingConfigHost.cs
- LocalFileSettingsProvider.cs
- HorizontalAlignConverter.cs
- DragEvent.cs
- Assert.cs
- EnumValAlphaComparer.cs
- SqlDataSourceFilteringEventArgs.cs
- XhtmlBasicTextViewAdapter.cs
- RoleManagerEventArgs.cs
- SBCSCodePageEncoding.cs
- DecoderReplacementFallback.cs
- ImmutableClientRuntime.cs
- DataControlFieldHeaderCell.cs
- Domain.cs
- ContentWrapperAttribute.cs
- PropertyInfoSet.cs
- ProxyFragment.cs
- KnownColorTable.cs
- Point3DCollection.cs
- GacUtil.cs
- DataObjectSettingDataEventArgs.cs
- ButtonField.cs
- SpoolingTask.cs
- FormClosedEvent.cs
- ListBindableAttribute.cs
- UpdateEventArgs.cs
- EncodingInfo.cs
- DesignerActionItemCollection.cs
- TextServicesHost.cs
- SqlNamer.cs
- InstancePersistenceEvent.cs
- EndpointConfigContainer.cs
- DiagnosticTrace.cs
- SchemaNames.cs
- Axis.cs
- _TransmitFileOverlappedAsyncResult.cs
- BuildResultCache.cs
- ConfigXmlAttribute.cs
- Types.cs
- InputScopeAttribute.cs
- Vector3DKeyFrameCollection.cs
- ConditionalExpression.cs
- TypeForwardedToAttribute.cs
- ConstructorArgumentAttribute.cs
- AssemblyBuilderData.cs
- DataSourceProvider.cs
- PeerNodeAddress.cs
- ThemeConfigurationDialog.cs
- SoapObjectReader.cs
- StrokeFIndices.cs
- ConfigurationProperty.cs
- Debug.cs
- FilterQuery.cs
- TTSEngineProxy.cs
- X509AsymmetricSecurityKey.cs
- OrderedDictionaryStateHelper.cs
- NetSectionGroup.cs
- ToReply.cs
- XmlCharCheckingWriter.cs
- MaxValueConverter.cs
- UIElementCollection.cs
- ApplicationHost.cs
- StorageMappingItemCollection.cs
- ConfigurationSettings.cs
- RichTextBoxAutomationPeer.cs
- ResolveMatchesMessage11.cs
- PersistChildrenAttribute.cs
- ArgumentNullException.cs
- ReadOnlyCollection.cs
- ParallelTimeline.cs
- DataGridViewCellStyleConverter.cs
- FrameworkName.cs
- SystemIPv6InterfaceProperties.cs
- EntityUtil.cs
- LinqDataView.cs
- AssemblyNameProxy.cs
- FolderLevelBuildProviderAppliesToAttribute.cs
- ListViewItemSelectionChangedEvent.cs
- AddIn.cs
- SafeNativeMethodsCLR.cs
- XPathNodeHelper.cs
- ZipIOCentralDirectoryBlock.cs
- DataGridViewCellCancelEventArgs.cs
- ByteStream.cs
- XmlCustomFormatter.cs
- errorpatternmatcher.cs
- AutomationPropertyInfo.cs