Constructor LinearGradientBrush
LinearGradientBrush()
Initializes a new instance of the LinearGradientBrush class.
public LinearGradientBrush()
LinearGradientBrush(Color, Color)
Initializes a new instance of the LinearGradientBrush class with the specified start color and end color.
public LinearGradientBrush(Color startColor, Color endColor)
Parameters
LinearGradientBrush(GradientStop[])
Initializes a new instance of the LinearGradientBrush class that has the specified gradient stops.
public LinearGradientBrush(GradientStop[] gradientStops)
Parameters
gradientStopsGradientStop[]The GradientStop instances array to set on this brush.
LinearGradientBrush(PointD, PointD, Color, Color)
Initializes a new instance of the LinearGradientBrush class that has the specified start color, end color, start point, end point.
public LinearGradientBrush(PointD startPoint, PointD endPoint, Color startColor, Color endColor)
Parameters
startPointPointDThe start point of the gradient.
endPointPointDThe end point of the gradient.
startColorColorThe start color of the gradient.
endColorColorThe end color of the gradient.
LinearGradientBrush(PointD, PointD, GradientStop[])
Initializes a new instance of the LinearGradientBrush class that has the specified gradient stops, start point and end point.
public LinearGradientBrush(PointD startPoint, PointD endPoint, GradientStop[] gradientStops)
Parameters
startPointPointDThe start point of the gradient.
endPointPointDThe end point of the gradient.
gradientStopsGradientStop[]The GradientStop instances array to set on this brush.