Table of Contents

Constructor ReportShapeGradient

Namespace
DocWright.Reporting.Pagination
Assembly
DocWright.Reporting.dll

ReportShapeGradient(ReportShapePoint, ReportShapePoint, IReadOnlyList<ReportShapeGradientStop>)

Initializes a linear gradient.

public ReportShapeGradient(ReportShapePoint start, ReportShapePoint end, IReadOnlyList<ReportShapeGradientStop> stops)

Parameters

start ReportShapePoint

Where the first stop's position (0) lies, relative to the owning item's top-left corner.

end ReportShapePoint

Where the last stop's position (100000) lies.

stops IReadOnlyList<ReportShapeGradientStop>

At least two stops, in ascending order of position; copied.

Exceptions

ArgumentNullException

stops is null.

ArgumentException

There are fewer than two stops, or a stop's position is below the one before it.

ReportShapeGradient(ReportShapeGradientKind, ReportShapePoint, ReportShapePoint, IReadOnlyList<ReportShapeGradientStop>)

Initializes a linear or radial gradient.

public ReportShapeGradient(ReportShapeGradientKind kind, ReportShapePoint start, ReportShapePoint end, IReadOnlyList<ReportShapeGradientStop> stops)

Parameters

kind ReportShapeGradientKind

How the stops run: along a line, or out from a centre.

start ReportShapePoint

Linear: where the first stop's position (0) lies. Radial: the centre, where the first stop's position lies. Relative to the owning item's top-left corner.

end ReportShapePoint

Linear: where the last stop's position (100000) lies. Radial: the centre plus the ellipse's horizontal and vertical radii, where the last stop's position lies on each axis.

stops IReadOnlyList<ReportShapeGradientStop>

At least two stops, in ascending order of position; copied.

Exceptions

ArgumentNullException

stops is null.

ArgumentException

There are fewer than two stops, or a stop's position is below the one before it.