PageAPI.CreateLinearGradientBrush

CreateLinearGradientBrush(List<XpsGradientStop>, PointF, PointF)

Creates a new linear gradient brush.

public XpsLinearGradientBrush CreateLinearGradientBrush(List<XpsGradientStop> gradientStops, 
    PointF startPoint, PointF endPoint)
ParameterTypeDescription
gradientStopsList`1The list of gradient stops.
startPointPointFThe starting point of the linear gradient.
endPointPointFThe end point of the linear gradient.

Return Value

New linear gradient brush.

See Also


CreateLinearGradientBrush(PointF, PointF)

Creates a new linear gradient brush.

public XpsLinearGradientBrush CreateLinearGradientBrush(PointF startPoint, PointF endPoint)
ParameterTypeDescription
startPointPointFThe starting point of the linear gradient.
endPointPointFThe end point of the linear gradient.

Return Value

New linear gradient brush.

See Also