Constructor ReportShapeLabel
- Namespace
- DocWright.Reporting.Pagination
- Assembly
- DocWright.Reporting.dll
ReportShapeLabel(string, Twips, Twips, Twips, ReportShapeLabelAlignment, string, Twips, bool, bool, ColorRgb)
Initializes a run of text placed by an anchor and a baseline.
public ReportShapeLabel(string text, Twips left, Twips baseline, Twips width, ReportShapeLabelAlignment alignment, string fontFamily, Twips fontSize, bool bold, bool italic, ColorRgb color)
Parameters
textstringThe text.
leftTwipsThe anchor's horizontal position, which
alignmentinterprets.baselineTwipsThe baseline, relative to the owning item's top edge.
widthTwipsThe text's measured width.
alignmentReportShapeLabelAlignmentHow the text sits against its anchor.
fontFamilystringThe font family.
fontSizeTwipsThe font size.
boldboolWhether the text is bold.
italicboolWhether the text is italic.
colorColorRgbThe text's colour.
Exceptions
- ArgumentNullException
textorfontFamilyis null.