Class TextInstructionStyle
- Namespace
- EncDotNet.S100.Portrayals.Application
- Assembly
- EncDotNet.S100.Portrayals.dll
How an InstructionBuilder draws text: font, colour tokens, halo, alignment and offset. The defaults match a TextInstruction's.
public sealed record TextInstructionStyle : IEquatable<TextInstructionStyle>
- Inheritance
-
TextInstructionStyle
- Implements
- Inherited Members
Properties
FontColor
The text's colour token. Defaults to CHBLK.
public string FontColor { get; init; }
Property Value
FontProportion
The font proportion.
public TextFontProportion FontProportion { get; init; }
Property Value
FontSize
The font size, which the mariner's text scale multiplies. Defaults to 10.
public double FontSize { get; init; }
Property Value
FontWeight
The font weight.
public TextFontWeight FontWeight { get; init; }
Property Value
HaloColor
The halo's colour token, or null (the default) for no halo.
public string? HaloColor { get; init; }
Property Value
HaloWidth
The halo's width in millimetres.
public double HaloWidth { get; init; }
Property Value
HorizontalAlignment
Horizontal alignment relative to the anchor.
public TextHorizontalAlignment HorizontalAlignment { get; init; }
Property Value
OffsetX
Horizontal offset from the anchor in millimetres, or null for none.
public double? OffsetX { get; init; }
Property Value
OffsetY
Vertical offset from the anchor in millimetres, or null for none.
public double? OffsetY { get; init; }
Property Value
VerticalAlignment
Vertical alignment relative to the anchor.
public TextVerticalAlignment VerticalAlignment { get; init; }