[]
Represents a linear gradient brush.
public class LinearGradientBrush : Brush
Creates a copy of a LinearGradientBrush object.
public LinearGradientBrush(LinearGradientBrush source)
source
LinearGradientBrushInitializes a new instance of the LinearGradientBrush class.
public LinearGradientBrush(Color startColor, Color endColor)
startColor
System.Drawing.ColorThe start gradient color.
endColor
System.Drawing.ColorThe end gradient color.
Initializes a new instance of the LinearGradientBrush class.
public LinearGradientBrush(Color startColor, PointF startPoint, Color endColor, PointF endPoint)
startColor
System.Drawing.ColorThe start gradient color.
startPoint
System.Drawing.PointFThe start gradient point.
endColor
System.Drawing.ColorThe end gradient color.
endPoint
System.Drawing.PointFThe end gradient point.
Gets or sets the ending gradient color.
public Color EndColor { get; set; }
Gets or sets the coordinates of the end point of the current linear gradient brush.
(0,0) is the top-left corner, (1,1) is the bottom-right corner.
public PointF EndPoint { get; set; }
Gets or sets the collection of gradient stops.
public IList<GradientStop> GradientStops { get; set; }
Gets or sets the starting gradient color.
public Color StartColor { get; set; }
Gets or sets the coordinates of the start point of the current linear gradient brush.
(0,0) is the top-left corner, (1,1) is the bottom-right corner.
public PointF StartPoint { get; set; }
Gets a value indicating whether the brush is actually visible.
public override bool Visible { get; }
Returns a value indicating whether brush uses semi-transparent colors.
public bool AreSemitransparentColorsUsed()
Returns True if the specified brush is the same as the current brush.
protected override bool SameBrush(Brush brush)
brush
Brush