Table of Contents

Constructor ReportShapeRegion

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

ReportShapeRegion(IReadOnlyList<IReadOnlyList<ReportShapePoint>>, ColorRgb)

Initializes an opaque region filled by the nonzero winding rule.

public ReportShapeRegion(IReadOnlyList<IReadOnlyList<ReportShapePoint>> contours, ColorRgb fill)

Parameters

contours IReadOnlyList<IReadOnlyList<ReportShapePoint>>

The closed contours, relative to the owning item's top-left corner; copied.

fill ColorRgb

The fill colour.

Exceptions

ArgumentNullException

contours or one of its contours is null.

ReportShapeRegion(IReadOnlyList<IReadOnlyList<ReportShapePoint>>, ColorRgb, byte)

Initializes a region whose fill has an opacity from 0 (transparent) to 255 (opaque), filled by the nonzero winding rule.

public ReportShapeRegion(IReadOnlyList<IReadOnlyList<ReportShapePoint>> contours, ColorRgb fill, byte fillAlpha)

Parameters

contours IReadOnlyList<IReadOnlyList<ReportShapePoint>>

The closed contours, relative to the owning item's top-left corner; copied.

fill ColorRgb

The fill colour.

fillAlpha byte

The fill's opacity.

Exceptions

ArgumentNullException

contours or one of its contours is null.

ReportShapeRegion(IReadOnlyList<IReadOnlyList<ReportShapePoint>>, ColorRgb, byte, ReportShapeGradient?)

Initializes a region that may be filled with a gradient rather than a flat colour (Phase 95): a map polygon whose style grades it, one gradient over all its contours, its holes cut out.

public ReportShapeRegion(IReadOnlyList<IReadOnlyList<ReportShapePoint>> contours, ColorRgb fill, byte fillAlpha, ReportShapeGradient? gradient)

Parameters

contours IReadOnlyList<IReadOnlyList<ReportShapePoint>>

The closed contours, relative to the owning item's top-left corner; copied.

fill ColorRgb

The fill colour; with a gradient, the flat colour a consumer that cannot paint one falls back to.

fillAlpha byte

The fill's opacity, the gradient's included.

gradient ReportShapeGradient

The gradient the region is filled with, or null for the flat fill.

Exceptions

ArgumentNullException

contours or one of its contours is null.

ReportShapeRegion(IReadOnlyList<IReadOnlyList<ReportShapePoint>>, ColorRgb, byte, ReportShapeGradient?, ReportShapeHatch?)

Initializes a region that may be filled with a hatch (Phase 96) or a gradient rather than a flat colour.

public ReportShapeRegion(IReadOnlyList<IReadOnlyList<ReportShapePoint>> contours, ColorRgb fill, byte fillAlpha, ReportShapeGradient? gradient, ReportShapeHatch? hatch)

Parameters

contours IReadOnlyList<IReadOnlyList<ReportShapePoint>>

The closed contours, relative to the owning item's top-left corner; copied.

fill ColorRgb

The fill colour; with a gradient or a hatch, the flat colour a consumer that cannot paint one falls back to.

fillAlpha byte

The fill's opacity, the gradient's or the hatch's included.

gradient ReportShapeGradient

The gradient the region is filled with, or null; ignored by a consumer when a hatch is set.

hatch ReportShapeHatch

The hatch the region is filled with, or null.

Exceptions

ArgumentNullException

contours or one of its contours is null.