Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Shared / MS / Internal / Generated / ColorInterpolationModeValidation.cs / 1305600 / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ResourceExpressionEditorSheet.cs
- GlobalProxySelection.cs
- AspProxy.cs
- CodeDomComponentSerializationService.cs
- TdsRecordBufferSetter.cs
- UserPreferenceChangingEventArgs.cs
- Speller.cs
- XmlSchemaRedefine.cs
- NominalTypeEliminator.cs
- DataGridViewTextBoxColumn.cs
- DatePicker.cs
- DoubleLinkListEnumerator.cs
- ZipPackagePart.cs
- HttpBrowserCapabilitiesWrapper.cs
- RequestContext.cs
- CollectionViewGroupRoot.cs
- VirtualizingStackPanel.cs
- TextEditorTyping.cs
- CollectionBase.cs
- TickBar.cs
- ImageList.cs
- ConsoleTraceListener.cs
- NativeMethods.cs
- DynamicDiscoveryDocument.cs
- UnhandledExceptionEventArgs.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- OdbcEnvironment.cs
- SafeRegistryHandle.cs
- CellParaClient.cs
- Vector3dCollection.cs
- LayoutEngine.cs
- GregorianCalendarHelper.cs
- ConnectionPoolManager.cs
- MaskedTextBoxTextEditorDropDown.cs
- ItemList.cs
- FixedSOMPage.cs
- SimpleWebHandlerParser.cs
- httpserverutility.cs
- SiteOfOriginPart.cs
- ProfileModule.cs
- XNodeNavigator.cs
- GlyphRun.cs
- UnmanagedMemoryStream.cs
- VirtualDirectoryMapping.cs
- Site.cs
- WebCodeGenerator.cs
- TransactedReceiveScope.cs
- ControlTemplate.cs
- DictionarySurrogate.cs
- StorageMappingFragment.cs
- HashHelper.cs
- LicenseException.cs
- ConfigurationSettings.cs
- Profiler.cs
- KeyProperty.cs
- TextStore.cs
- ErrorWrapper.cs
- HandleScope.cs
- TextRangeProviderWrapper.cs
- MarshalByRefObject.cs
- BuildProvider.cs
- ConfigurationSection.cs
- XPathDescendantIterator.cs
- ItemCheckedEvent.cs
- Rect3DConverter.cs
- TextBoxRenderer.cs
- NoResizeSelectionBorderGlyph.cs
- BitmapEffectGeneralTransform.cs
- CanonicalXml.cs
- PrimaryKeyTypeConverter.cs
- DataBinding.cs
- SchemaNames.cs
- ConfigViewGenerator.cs
- UnhandledExceptionEventArgs.cs
- CroppedBitmap.cs
- ResourceReader.cs
- CustomBindingElementCollection.cs
- DataGridViewHitTestInfo.cs
- GeometryGroup.cs
- PaintValueEventArgs.cs
- ClientType.cs
- TextLineBreak.cs
- UriTemplateTrieNode.cs
- precedingsibling.cs
- SqlCacheDependencySection.cs
- SqlPersistenceWorkflowInstanceDescription.cs
- EdmItemError.cs
- AttachmentCollection.cs
- EraserBehavior.cs
- XmlReader.cs
- ClientConfigurationSystem.cs
- UrlPath.cs
- safex509handles.cs
- ColorEditor.cs
- Canonicalizers.cs
- WebPartZoneBase.cs
- TypefaceCollection.cs
- XmlEncodedRawTextWriter.cs
- SimpleMailWebEventProvider.cs
- CellTreeNodeVisitors.cs