Class TextPaintOp
A resolved text label. The anchor is already selected (Part 9 §11.4/§11.5).
public sealed class TextPaintOp : PaintOp
- Inheritance
-
TextPaintOp
- Inherited Members
Properties
BackColor
Resolved background colour, or null when the label has no background box.
public RgbaColor? BackColor { get; init; }
Property Value
FontProportion
Font proportion (S-100 Part 9 FontCharacteristics.proportion).
public TextFontProportion FontProportion { get; init; }
Property Value
FontSizePx
Font size in display pixels (already folds in the renderer-global text scale).
public double FontSizePx { get; init; }
Property Value
FontWeight
Font weight (S-100 Part 9 FontCharacteristics.weight).
public TextFontWeight FontWeight { get; init; }
Property Value
ForeColor
Resolved foreground colour (transparency already applied).
public RgbaColor ForeColor { get; init; }
Property Value
HaloColor
Resolved halo colour stroked around the glyphs, or null for no halo.
public RgbaColor? HaloColor { get; init; }
Property Value
HaloWidthPx
Halo stroke width in display pixels (already folds in the text scale).
public double HaloWidthPx { get; init; }
Property Value
HorizontalAlignment
Horizontal alignment relative to the anchor.
public TextHorizontalAlignment HorizontalAlignment { get; init; }
Property Value
OffsetXpx
Horizontal offset from the anchor, in display pixels.
public double OffsetXpx { get; init; }
Property Value
OffsetYpx
Vertical offset from the anchor, in display pixels (screen-space +Y = down).
public double OffsetYpx { get; init; }
Property Value
PlacementArea
The surface the anchor is kept in view within (S-100 Part 9
AreaPlacement:VisibleParts), or null when the
anchor is fixed. A live renderer draws at
AnchorIn((double X, double Y), double, double, double, double) for its view instead of
World.
public PlacementArea? PlacementArea { get; init; }
Property Value
Text
The literal text to render.
public required string Text { get; init; }
Property Value
VerticalAlignment
Vertical alignment relative to the anchor.
public TextVerticalAlignment VerticalAlignment { get; init; }
Property Value
World
Anchor position in EPSG:3857 metres.
public required (double X, double Y) World { get; init; }