Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Core / CSharp / System / Windows / Media / GradientBrush.cs / 1 / GradientBrush.cs
//----------------------------------------------------------------------------
//
// Copyright (C) Microsoft Corporation. All rights reserved.
//
// File: GradientBrush.cs
//
// Description: This file contains the implementation of GradientBrush.
// The GradientBrush is an abstract class of Brushes which describes
// a way to fill a region by a gradient. Derived classes describe different
// ways of interpreting gradient stops.
//
// History:
// 04/30/2003 : adsmith - Created it.
//
//---------------------------------------------------------------------------
using System;
using System.Diagnostics;
using System.ComponentModel;
using System.Windows;
using System.Windows.Markup;
using System.Windows.Media;
using System.Windows.Media.Animation;
using MS.Internal;
using System.Runtime.InteropServices;
using System.Windows.Media.Composition;
namespace System.Windows.Media
{
///
/// GradientBrush
/// The GradientBrush is an abstract class of Brushes which describes
/// a way to fill a region by a gradient. Derived classes describe different
/// ways of interpreting gradient stops.
///
[ContentProperty("GradientStops")]
public abstract partial class GradientBrush : Brush
{
#region Constructors
///
/// Protected constructor for GradientBrush
///
protected GradientBrush()
{
}
///
/// Protected constructor for GradientBrush
/// Sets all the values of the GradientStopCollection, all other values are left as default.
///
protected GradientBrush(GradientStopCollection gradientStopCollection)
{
GradientStops = gradientStopCollection;
}
#endregion Constructors
}
}
// 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.
//
// File: GradientBrush.cs
//
// Description: This file contains the implementation of GradientBrush.
// The GradientBrush is an abstract class of Brushes which describes
// a way to fill a region by a gradient. Derived classes describe different
// ways of interpreting gradient stops.
//
// History:
// 04/30/2003 : adsmith - Created it.
//
//---------------------------------------------------------------------------
using System;
using System.Diagnostics;
using System.ComponentModel;
using System.Windows;
using System.Windows.Markup;
using System.Windows.Media;
using System.Windows.Media.Animation;
using MS.Internal;
using System.Runtime.InteropServices;
using System.Windows.Media.Composition;
namespace System.Windows.Media
{
///
/// GradientBrush
/// The GradientBrush is an abstract class of Brushes which describes
/// a way to fill a region by a gradient. Derived classes describe different
/// ways of interpreting gradient stops.
///
[ContentProperty("GradientStops")]
public abstract partial class GradientBrush : Brush
{
#region Constructors
///
/// Protected constructor for GradientBrush
///
protected GradientBrush()
{
}
///
/// Protected constructor for GradientBrush
/// Sets all the values of the GradientStopCollection, all other values are left as default.
///
protected GradientBrush(GradientStopCollection gradientStopCollection)
{
GradientStops = gradientStopCollection;
}
#endregion Constructors
}
}
// 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
- OperationResponse.cs
- SuppressedPackageProperties.cs
- HTTPNotFoundHandler.cs
- CodeSnippetStatement.cs
- UriParserTemplates.cs
- ComponentSerializationService.cs
- Win32PrintDialog.cs
- DesignTableCollection.cs
- WarningException.cs
- NotifyCollectionChangedEventArgs.cs
- UrlPath.cs
- BitmapCodecInfoInternal.cs
- FixedHyperLink.cs
- DataContractJsonSerializerOperationBehavior.cs
- KeyboardDevice.cs
- RuntimeUtils.cs
- DataPagerCommandEventArgs.cs
- MD5CryptoServiceProvider.cs
- SystemTcpConnection.cs
- UdpChannelFactory.cs
- DataGridViewLayoutData.cs
- CompositeActivityTypeDescriptor.cs
- CheckPair.cs
- IsolatedStorage.cs
- Types.cs
- DataGridViewCellLinkedList.cs
- TextLineResult.cs
- ReplyChannel.cs
- SQLUtility.cs
- BrowserInteropHelper.cs
- MessageDecoder.cs
- ValidationErrorInfo.cs
- HttpPostProtocolImporter.cs
- ConnectionManagementSection.cs
- WinFormsSecurity.cs
- LambdaCompiler.Unary.cs
- HttpDictionary.cs
- StorageAssociationTypeMapping.cs
- StreamingContext.cs
- XsdSchemaFileEditor.cs
- SplineQuaternionKeyFrame.cs
- VerificationAttribute.cs
- Pair.cs
- AdditionalEntityFunctions.cs
- ConnectionStringsExpressionBuilder.cs
- ButtonChrome.cs
- ReadWriteSpinLock.cs
- ValidationEventArgs.cs
- HtmlInputText.cs
- complextypematerializer.cs
- ControlCommandSet.cs
- AddInIpcChannel.cs
- Unit.cs
- WmlFormAdapter.cs
- FixedSOMElement.cs
- FreeFormDesigner.cs
- PathFigureCollectionConverter.cs
- DataFormats.cs
- SiteMembershipCondition.cs
- PolygonHotSpot.cs
- ClientApiGenerator.cs
- MouseWheelEventArgs.cs
- WindowInteropHelper.cs
- MetadataArtifactLoaderResource.cs
- ToolboxComponentsCreatedEventArgs.cs
- Int16AnimationUsingKeyFrames.cs
- SafeArrayTypeMismatchException.cs
- InputScopeNameConverter.cs
- EntityContainerAssociationSetEnd.cs
- shaperfactoryquerycachekey.cs
- CodeBlockBuilder.cs
- DataGridCellInfo.cs
- ValueCollectionParameterReader.cs
- HttpGetProtocolReflector.cs
- NativeWindow.cs
- ClientConfigPaths.cs
- Geometry.cs
- DataControlLinkButton.cs
- DataFieldConverter.cs
- SolidColorBrush.cs
- cache.cs
- HttpContext.cs
- HttpFileCollection.cs
- WarningException.cs
- OdbcInfoMessageEvent.cs
- ComEventsHelper.cs
- CheckedListBox.cs
- HostedTransportConfigurationManager.cs
- MetafileEditor.cs
- OptimizedTemplateContentHelper.cs
- DataGridViewButtonColumn.cs
- FileInfo.cs
- StorageSetMapping.cs
- MsmqDiagnostics.cs
- XPathException.cs
- ResumeStoryboard.cs
- GridViewColumnHeader.cs
- ObjectHelper.cs
- WindowsTokenRoleProvider.cs
- DoubleAverageAggregationOperator.cs