ImmutableLinearGradientBrush.

ImmutableLinearGradientBrush(IReadOnlyList<ImmutableGradientStop>, double, GradientSpreadMethod, RelativePoint?, RelativePoint?) Constructor

Summary

Initializes a new instance of the ImmutableLinearGradientBrush class.

Syntax

public ImmutableLinearGradientBrush(IReadOnlyList<ImmutableGradientStop> gradientStops, double opacity = 1, GradientSpreadMethod spreadMethod = Pad, RelativePoint? startPoint = null, RelativePoint? endPoint = null)

Parameters

Name Type Description
gradientStops IReadOnlyList<ImmutableGradientStop> The gradient stops.
opacity double The opacity of the brush.
spreadMethod GradientSpreadMethod The spread method.
startPoint RelativePoint? The start point for the gradient.
endPoint RelativePoint? The end point for the gradient.

Return Value

Type Description
void