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
- UmAlQuraCalendar.cs
- MembershipValidatePasswordEventArgs.cs
- TrustManagerMoreInformation.cs
- FrameworkRichTextComposition.cs
- UriParserTemplates.cs
- CategoryList.cs
- RemoteWebConfigurationHost.cs
- SystemColors.cs
- ProcessModelSection.cs
- BamlLocalizationDictionary.cs
- AnnotationHighlightLayer.cs
- DeclarationUpdate.cs
- SizeLimitedCache.cs
- ObjectStorage.cs
- TargetException.cs
- ImageAnimator.cs
- WriteTimeStream.cs
- MapPathBasedVirtualPathProvider.cs
- XmlParser.cs
- UInt32.cs
- BezierSegment.cs
- SerializationHelper.cs
- DataTable.cs
- ReferentialConstraintRoleElement.cs
- WCFBuildProvider.cs
- ClassHandlersStore.cs
- XsdBuildProvider.cs
- ControlIdConverter.cs
- AddInServer.cs
- CrossAppDomainChannel.cs
- KeyGestureConverter.cs
- SecurityPolicyVersion.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- AudioStateChangedEventArgs.cs
- IssuedTokensHeader.cs
- MetricEntry.cs
- SerializationSectionGroup.cs
- StringConcat.cs
- InfiniteIntConverter.cs
- CriticalHandle.cs
- SpanIndex.cs
- NotificationContext.cs
- ToolboxDataAttribute.cs
- SqlTriggerAttribute.cs
- InputReportEventArgs.cs
- WebBrowserContainer.cs
- EllipseGeometry.cs
- TypefaceCollection.cs
- DeferredRunTextReference.cs
- XamlPathDataSerializer.cs
- InitializationEventAttribute.cs
- PolygonHotSpot.cs
- AuthorizationSection.cs
- GridToolTip.cs
- MenuItemStyleCollection.cs
- IPGlobalProperties.cs
- ExpressionPrinter.cs
- LinkUtilities.cs
- OneToOneMappingSerializer.cs
- OracleParameter.cs
- SourceFilter.cs
- WindowInteropHelper.cs
- ComplexPropertyEntry.cs
- PreviousTrackingServiceAttribute.cs
- TrackingRecordPreFilter.cs
- ObjectDataSourceMethodEventArgs.cs
- ChtmlCommandAdapter.cs
- graph.cs
- Image.cs
- BitmapEditor.cs
- IgnoreSectionHandler.cs
- InstanceHandleConflictException.cs
- WebPartAddingEventArgs.cs
- KeyedQueue.cs
- UserControlCodeDomTreeGenerator.cs
- Line.cs
- LineInfo.cs
- PersonalizationAdministration.cs
- DrawingState.cs
- webbrowsersite.cs
- FormViewDeletedEventArgs.cs
- ParserExtension.cs
- MailHeaderInfo.cs
- MethodBody.cs
- XPathPatternParser.cs
- Errors.cs
- EventListenerClientSide.cs
- InvalidWMPVersionException.cs
- DecimalKeyFrameCollection.cs
- ReadContentAsBinaryHelper.cs
- TreeViewHitTestInfo.cs
- ContextStack.cs
- ProtocolsConfigurationHandler.cs
- Soap11ServerProtocol.cs
- DayRenderEvent.cs
- DbConnectionPoolIdentity.cs
- SplineKeyFrames.cs
- OperationResponse.cs
- EnvironmentPermission.cs
- BaseConfigurationRecord.cs