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
- RichTextBoxConstants.cs
- TypedDataSourceCodeGenerator.cs
- ObjectAnimationBase.cs
- EntryPointNotFoundException.cs
- activationcontext.cs
- TextElementEditingBehaviorAttribute.cs
- RequiredAttributeAttribute.cs
- SAPIEngineTypes.cs
- RowCache.cs
- Input.cs
- Rijndael.cs
- ImageDrawing.cs
- Int32.cs
- EdmItemError.cs
- ToolStripPanelRenderEventArgs.cs
- Misc.cs
- Grant.cs
- contentDescriptor.cs
- XmlSchemaAppInfo.cs
- _PooledStream.cs
- DataGridViewCellValueEventArgs.cs
- TokenFactoryFactory.cs
- ObjectHelper.cs
- MetadataSerializer.cs
- XmlNodeList.cs
- MailAddress.cs
- BaseDataBoundControl.cs
- DocobjHost.cs
- AssociationSetMetadata.cs
- DigestComparer.cs
- SafeRegistryKey.cs
- CallbackHandler.cs
- ActivityWithResultWrapper.cs
- RangeBase.cs
- ExpressionBinding.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- ToolStripSystemRenderer.cs
- GuidConverter.cs
- EntityContainer.cs
- MimeImporter.cs
- BorderGapMaskConverter.cs
- EFTableProvider.cs
- TemplateColumn.cs
- StringComparer.cs
- DataReceivedEventArgs.cs
- _emptywebproxy.cs
- AttachInfo.cs
- ClientType.cs
- ColorKeyFrameCollection.cs
- RuntimeConfigLKG.cs
- Debugger.cs
- EditCommandColumn.cs
- ActivityExecutorOperation.cs
- BindingMAnagerBase.cs
- COM2ColorConverter.cs
- CounterNameConverter.cs
- RuntimeConfig.cs
- DataPagerFieldCollection.cs
- EncryptedData.cs
- LinqToSqlWrapper.cs
- SoapTypeAttribute.cs
- BinaryReader.cs
- MarkedHighlightComponent.cs
- DateTimePicker.cs
- LayoutTable.cs
- SerializableTypeCodeDomSerializer.cs
- TreeSet.cs
- SelfSignedCertificate.cs
- TextParagraphProperties.cs
- Oid.cs
- SpnEndpointIdentityExtension.cs
- WebPartCatalogAddVerb.cs
- OdbcCommandBuilder.cs
- ResumeStoryboard.cs
- ConnectionsZone.cs
- TemplateAction.cs
- StyleXamlTreeBuilder.cs
- TimeZone.cs
- GenerateTemporaryTargetAssembly.cs
- DataGridViewCellCancelEventArgs.cs
- WpfKnownTypeInvoker.cs
- FixedTextSelectionProcessor.cs
- CellLabel.cs
- MediaTimeline.cs
- TableRow.cs
- ScriptControlManager.cs
- _HTTPDateParse.cs
- LineProperties.cs
- FlowPosition.cs
- selecteditemcollection.cs
- DictionaryContent.cs
- IsolatedStorage.cs
- ValueSerializerAttribute.cs
- HttpDebugHandler.cs
- ScriptManagerProxy.cs
- UniqueSet.cs
- ImportCatalogPart.cs
- MatchNoneMessageFilter.cs
- InplaceBitmapMetadataWriter.cs
- LockRecursionException.cs