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
startReportShapePointWhere the first stop's position (0) lies, relative to the owning item's top-left corner.
endReportShapePointWhere the last stop's position (100000) lies.
stopsIReadOnlyList<ReportShapeGradientStop>At least two stops, in ascending order of position; copied.
Exceptions
- ArgumentNullException
stopsis 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
kindReportShapeGradientKindHow the stops run: along a line, or out from a centre.
startReportShapePointLinear: 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.
endReportShapePointLinear: 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.
stopsIReadOnlyList<ReportShapeGradientStop>At least two stops, in ascending order of position; copied.
Exceptions
- ArgumentNullException
stopsis null.- ArgumentException
There are fewer than two stops, or a stop's position is below the one before it.