ILinearGradientBrush Interface

ILinearGradientBrush interface

Defines an interface for a brush with a linear gradient.

public interface ILinearGradientBrush : IGradientBrush

Properties

NameDescription
Angle { get; set; }Gets or sets the angle, measured in degrees clockwise from the x-axis, of the gradient’s orientation line.
Rect { get; set; }Gets or sets the rectangular region that defines the starting and ending points of the gradient.

Methods

NameDescription
Clone()Creates a deep copy of the linear gradient brush. See ILinearGradientBrush.
ConvertToTextureBrush()Converts the linear gradient brush to a texture brush. See ITextureBrush.

See Also