Encapsulates a Brush with a linear gradient.
| C# | Visual Basic |
public sealed class LinearGradientBrush : IDisposable
Public NotInheritable Class LinearGradientBrush _ Implements IDisposable
| All Members | Constructors | Methods | Properties | ||
| Icon | Member | Description |
|---|---|---|
| LinearGradientBrush(Rectangle, Color, Color, LinearGradientMode) |
Initializes a new instance of the LinearGradientBrush class with the specified points and colors.
| |
| LinearGradientBrush(RectangleF, Color, Color, LinearGradientMode) |
Initializes a new instance of the LinearGradientBrush class with the specified points and colors.
| |
| Dispose()()()() |
Releases all resources used by this LinearGradientBrush object.
| |
| Equals(Object) | (Inherited from Object.) | |
| Finalize()()()() |
Allows a LinearGradientBrush to attempt to free resources and perform other cleanup operations before the LinearGradientBrush is reclaimed by garbage collection.
(Overrides Object.Finalize()()()().) | |
| GetHashCode()()()() |
Serves as a hash function for a particular type.
(Inherited from Object.) | |
| GetType()()()() |
Gets the Type of the current instance.
(Inherited from Object.) | |
| MemberwiseClone()()()() |
Creates a shallow copy of the current Object.
(Inherited from Object.) | |
| Rectangle |
A RectangleF structure that specifies the starting and ending points of the gradient.
| |
| ToString()()()() | (Inherited from Object.) |
| Platforms Supported | |
|---|---|
| Windows Mobile | Windows Mobile Version 5.0 and later |
| Windows Embedded Compact | Windows CE .NET 4.2 and later |
| Object | |
| LinearGradientBrush | |