Class ReportShapeLabel
- Namespace
- DocWright.Reporting.Pagination
- Assembly
- DocWright.Reporting.dll
A run of text in a chart: a tick label, a category label, a title, a legend entry.
public sealed class ReportShapeLabel : ReportShape
- Inheritance
-
ReportShapeLabel
- Inherited Members
Remarks
Left is the anchor named by Alignment, and Baseline is the text's baseline — the same convention the page model's text runs use, so a renderer places a chart label exactly as it places any other text.
Constructors
- ReportShapeLabel(string, Twips, Twips, Twips, ReportShapeLabelAlignment, string, Twips, bool, bool, ColorRgb)
Initializes a run of text placed by an anchor and a baseline.
- ReportShapeLabel(string, Twips, Twips, Twips, ReportShapeLabelAlignment, string, Twips, bool, bool, ColorRgb, IReadOnlyList<Twips>?)
Initializes a run of text whose characters each advance by their own measured width.
- ReportShapeLabel(string, Twips, Twips, Twips, ReportShapeLabelAlignment, string, Twips, bool, bool, ColorRgb, IReadOnlyList<Twips>?, GlyphOrientation)
Initializes a run of text turned a quarter turn, such as a chart's value-axis title.
- ReportShapeLabel(string, Twips, Twips, Twips, string, Twips, bool, bool, ColorRgb, IReadOnlyList<Twips>?, double)
Initializes a run of text turned to any angle about its origin, such as a gauge's scale label that follows the scale round (Phase 94).
Properties
- Advances
Gets each code point's advance, in order; empty when the label's width is shared evenly between them.
- Angle
Gets how far the label is turned, in degrees clockwise from level about its run's origin (Left, Baseline); 0 for a level label and for one turned a quarter turn by Orientation.
- Baseline
Gets the baseline, relative to the chart's top edge.
- Bold
Gets a value indicating whether the text is bold.
- Color
Gets the text colour.
- FontFamily
Gets the font family.
- FontSize
Gets the font size.
- Italic
Gets a value indicating whether the text is italic.
- Kind
Gets what kind of shape this is.
- Orientation
Gets which way the text is turned; Upright for nearly every label. A turned label is placed by its run's origin (Left, Baseline), not by Alignment.
- Text
Gets the text.
- Width
Gets the measured width of the text.