Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- UpdateException.cs
- Point4D.cs
- DetailsViewRow.cs
- HtmlInputImage.cs
- WmlImageAdapter.cs
- RadioButtonAutomationPeer.cs
- XmlSchemaChoice.cs
- EDesignUtil.cs
- TemplateContent.cs
- DataGridCheckBoxColumn.cs
- FileUtil.cs
- Byte.cs
- CodeTypeMemberCollection.cs
- MimeReturn.cs
- ServiceContractGenerationContext.cs
- PageWrapper.cs
- CancelEventArgs.cs
- CompiledQueryCacheEntry.cs
- HttpModuleAction.cs
- MailMessageEventArgs.cs
- InternalControlCollection.cs
- RelationshipEndMember.cs
- RC2CryptoServiceProvider.cs
- _ListenerRequestStream.cs
- FileNotFoundException.cs
- XhtmlBasicTextViewAdapter.cs
- MatrixUtil.cs
- IList.cs
- RequestSecurityTokenForRemoteTokenFactory.cs
- ObsoleteAttribute.cs
- ScrollChangedEventArgs.cs
- RightsDocument.cs
- ServerValidateEventArgs.cs
- LinearQuaternionKeyFrame.cs
- VirtualPath.cs
- ToolZone.cs
- MatrixConverter.cs
- PeerCredentialElement.cs
- EntityType.cs
- HttpValueCollection.cs
- MsmqMessage.cs
- TraceSource.cs
- ProtectedProviderSettings.cs
- ChangeProcessor.cs
- TypeForwardedFromAttribute.cs
- WebPartDeleteVerb.cs
- BinaryConverter.cs
- ToolStripContainer.cs
- EtwTrace.cs
- BCryptHashAlgorithm.cs
- MappingItemCollection.cs
- PolicyValidationException.cs
- MetadataPropertyAttribute.cs
- XmlSchemaAppInfo.cs
- RowBinding.cs
- SamlAssertionKeyIdentifierClause.cs
- OdbcConnectionStringbuilder.cs
- ProjectionCamera.cs
- RemotingSurrogateSelector.cs
- Profiler.cs
- FileDialog.cs
- SwitchCase.cs
- ConfigViewGenerator.cs
- XDRSchema.cs
- SessionEndingEventArgs.cs
- CharEnumerator.cs
- OutputBuffer.cs
- RayMeshGeometry3DHitTestResult.cs
- OdbcTransaction.cs
- Setter.cs
- IList.cs
- AppDomainUnloadedException.cs
- GeometryGroup.cs
- NonParentingControl.cs
- SingleTagSectionHandler.cs
- X509SecurityTokenProvider.cs
- HyperLinkField.cs
- recordstatescratchpad.cs
- XamlPointCollectionSerializer.cs
- AttributeUsageAttribute.cs
- DataGridViewComboBoxEditingControl.cs
- OutputCacheSection.cs
- FormattedText.cs
- FrameworkContentElement.cs
- XmlIgnoreAttribute.cs
- ValidationErrorCollection.cs
- DataControlButton.cs
- SymmetricAlgorithm.cs
- DataGridViewCellStyleChangedEventArgs.cs
- StringArrayConverter.cs
- ActivityExecutorDelegateInfo.cs
- EntityDataSourceSelectedEventArgs.cs
- FolderLevelBuildProvider.cs
- RelationshipType.cs
- arclist.cs
- CodeConstructor.cs
- wgx_sdk_version.cs
- Soap12ProtocolReflector.cs
- BorderGapMaskConverter.cs
- UpdateRecord.cs