Constructor ReportShapePath
- Namespace
- DocWright.Reporting.Pagination
- Assembly
- DocWright.Reporting.dll
ReportShapePath(IReadOnlyList<ReportShapePoint>, bool, ColorRgb?, ColorRgb?, Twips)
Initializes an opaque path of straight segments through its points, in order.
public ReportShapePath(IReadOnlyList<ReportShapePoint> points, bool closed, ColorRgb? fill, ColorRgb? stroke, Twips strokeWidth)
Parameters
pointsIReadOnlyList<ReportShapePoint>The points, relative to the owning item's top-left corner; copied.
closedboolWhether the last point joins back to the first.
fillColorRgb?The fill colour, or null for none.
strokeColorRgb?The stroke colour, or null for none.
strokeWidthTwipsThe stroke's width.
Exceptions
- ArgumentNullException
pointsis null.
ReportShapePath(IReadOnlyList<ReportShapePoint>, bool, ColorRgb?, byte, ColorRgb?, byte, Twips)
Initializes a path whose fill and stroke have opacities from 0 (transparent) to 255 (opaque).
public ReportShapePath(IReadOnlyList<ReportShapePoint> points, bool closed, ColorRgb? fill, byte fillAlpha, ColorRgb? stroke, byte strokeAlpha, Twips strokeWidth)
Parameters
pointsIReadOnlyList<ReportShapePoint>The points, relative to the owning item's top-left corner; copied.
closedboolWhether the last point joins back to the first.
fillColorRgb?The fill colour, or null for none.
fillAlphabyteThe fill's opacity.
strokeColorRgb?The stroke colour, or null for none.
strokeAlphabyteThe stroke's opacity.
strokeWidthTwipsThe stroke's width.
Exceptions
- ArgumentNullException
pointsis null.