Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / Shared / MS / Internal / Generated / GradientSpreadMethodValidation.cs / 1 / GradientSpreadMethodValidation.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 IsGradientSpreadMethodValid(object valueObject)
{
GradientSpreadMethod value = (GradientSpreadMethod) valueObject;
return (value == GradientSpreadMethod.Pad) ||
(value == GradientSpreadMethod.Reflect) ||
(value == GradientSpreadMethod.Repeat);
}
}
}
// 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 IsGradientSpreadMethodValid(object valueObject)
{
GradientSpreadMethod value = (GradientSpreadMethod) valueObject;
return (value == GradientSpreadMethod.Pad) ||
(value == GradientSpreadMethod.Reflect) ||
(value == GradientSpreadMethod.Repeat);
}
}
}
// 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
- IIS7WorkerRequest.cs
- WinEventQueueItem.cs
- IApplicationTrustManager.cs
- SubordinateTransaction.cs
- IIS7WorkerRequest.cs
- XmlQueryType.cs
- IIS7WorkerRequest.cs
- DateTimeOffsetStorage.cs
- MarshalByRefObject.cs
- SqlCrossApplyToCrossJoin.cs
- ListViewItemMouseHoverEvent.cs
- EntityDataSourceState.cs
- XmlBaseReader.cs
- VariableDesigner.xaml.cs
- TextDecoration.cs
- ListDataBindEventArgs.cs
- CLSCompliantAttribute.cs
- Equal.cs
- ModelProperty.cs
- _CookieModule.cs
- sortedlist.cs
- ResXFileRef.cs
- RegionIterator.cs
- NegotiateStream.cs
- ToolStripInSituService.cs
- DataGridTable.cs
- HtmlGenericControl.cs
- TreeNode.cs
- SimpleRecyclingCache.cs
- SendDesigner.xaml.cs
- ExeContext.cs
- Type.cs
- TagPrefixInfo.cs
- externdll.cs
- DeferrableContent.cs
- AssemblyName.cs
- XmlUrlResolver.cs
- LinqDataSourceDeleteEventArgs.cs
- RoleGroup.cs
- TypeName.cs
- TypeReference.cs
- WebBaseEventKeyComparer.cs
- SubpageParaClient.cs
- MessageSecurityOverMsmq.cs
- MethodBuilderInstantiation.cs
- XmlSchemaSimpleType.cs
- PointF.cs
- KeyBinding.cs
- AtomServiceDocumentSerializer.cs
- TextFormatterContext.cs
- DigitShape.cs
- TypeConverter.cs
- DataTemplateKey.cs
- BypassElement.cs
- EditingScopeUndoUnit.cs
- CoreChannel.cs
- _Rfc2616CacheValidators.cs
- PathBox.cs
- ReadingWritingEntityEventArgs.cs
- QilInvokeEarlyBound.cs
- DependencyPropertyKind.cs
- _FtpControlStream.cs
- TrackingParticipant.cs
- SemanticAnalyzer.cs
- BindingValueChangedEventArgs.cs
- TdsParserStateObject.cs
- ContextStack.cs
- TransformGroup.cs
- Assembly.cs
- RuntimeVariablesExpression.cs
- DbCommandTree.cs
- NetCodeGroup.cs
- DetailsViewUpdateEventArgs.cs
- CompilerWrapper.cs
- NonBatchDirectoryCompiler.cs
- RepeaterItem.cs
- DataGridViewCellFormattingEventArgs.cs
- HebrewCalendar.cs
- LinkClickEvent.cs
- QilIterator.cs
- OLEDB_Enum.cs
- DataBinder.cs
- ZipIOExtraFieldZip64Element.cs
- IRCollection.cs
- TargetException.cs
- WebGetAttribute.cs
- Formatter.cs
- ManualResetEvent.cs
- LexicalChunk.cs
- ImageList.cs
- CheckedListBox.cs
- BoolExpression.cs
- Sentence.cs
- OrderPreservingSpoolingTask.cs
- SingleAnimationUsingKeyFrames.cs
- NumberSubstitution.cs
- ActivationServices.cs
- CompilerTypeWithParams.cs
- CaseInsensitiveComparer.cs
- UniqueIdentifierService.cs