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
- DependencyObjectType.cs
- FreezableOperations.cs
- Annotation.cs
- XmlHierarchicalDataSourceView.cs
- RsaSecurityToken.cs
- TemplateBaseAction.cs
- GuidTagList.cs
- HandleCollector.cs
- SocketInformation.cs
- CatalogZoneBase.cs
- SqlCacheDependencyDatabaseCollection.cs
- ContactManager.cs
- AtlasWeb.Designer.cs
- FormatException.cs
- DBBindings.cs
- XamlStyleSerializer.cs
- DataGridColumnsPage.cs
- ResourceManagerWrapper.cs
- InternalDispatchObject.cs
- Domain.cs
- OverflowException.cs
- TimeSpanSecondsConverter.cs
- Point4D.cs
- XmlUtil.cs
- EventDescriptorCollection.cs
- MsmqOutputChannel.cs
- CacheForPrimitiveTypes.cs
- MappingItemCollection.cs
- Visual.cs
- OutOfProcStateClientManager.cs
- PublishLicense.cs
- NativeMethods.cs
- ButtonBaseAdapter.cs
- _ConnectOverlappedAsyncResult.cs
- TextElement.cs
- PerfCounters.cs
- SmiGettersStream.cs
- DataRowView.cs
- RawStylusSystemGestureInputReport.cs
- WmpBitmapEncoder.cs
- RequiredAttributeAttribute.cs
- WriteStateInfoBase.cs
- WebPartMinimizeVerb.cs
- DeploymentSection.cs
- StandardCommands.cs
- CorrelationService.cs
- RenderDataDrawingContext.cs
- BorderSidesEditor.cs
- FlowLayout.cs
- TextElement.cs
- CharKeyFrameCollection.cs
- EntityDataSourceValidationException.cs
- PolyLineSegment.cs
- ProcessManager.cs
- EntitySet.cs
- ServiceOperationUIEditor.cs
- OracleFactory.cs
- QueryHandler.cs
- TransactionsSectionGroup.cs
- AnonymousIdentificationModule.cs
- ScriptingSectionGroup.cs
- ToolStripItemCollection.cs
- TextBoxAutoCompleteSourceConverter.cs
- SoapIgnoreAttribute.cs
- Visitors.cs
- ChannelPoolSettings.cs
- WebPartDescriptionCollection.cs
- MultiTrigger.cs
- ProtocolsConfigurationHandler.cs
- ArrangedElement.cs
- InkPresenterAutomationPeer.cs
- WindowsTreeView.cs
- COM2Enum.cs
- PropertyDescriptorCollection.cs
- CursorConverter.cs
- ObjectSpanRewriter.cs
- NumericUpDownAcceleration.cs
- LockCookie.cs
- CardSpacePolicyElement.cs
- GeneralTransformGroup.cs
- ReadOnlyDataSource.cs
- ListItemConverter.cs
- MimeBasePart.cs
- PerformanceCounterManager.cs
- IpcServerChannel.cs
- AsyncResult.cs
- FullTextState.cs
- storepermission.cs
- RepeaterItem.cs
- Tablet.cs
- DescriptionAttribute.cs
- SystemGatewayIPAddressInformation.cs
- ButtonColumn.cs
- QueryContinueDragEventArgs.cs
- PropertyDescriptorCollection.cs
- DynamicPropertyHolder.cs
- ColumnResizeUndoUnit.cs
- Error.cs
- PropertyMapper.cs
- SuppressMergeCheckAttribute.cs