LayoutString

References
public class LayoutString
Represents a single string with layout properties.

Constructors

LayoutString

#
public LayoutString(string text, float contrast, FontStyle style = FontStyle.None, TextAlignment align = TextAlignment.Left)
Create a default layout string without any overrides.
text (string)Text to display.
contrast (float)Text contrast with background.
style (FontStyle = FontStyle.None)Font style override.
align (TextAlignment = TextAlignment.Left)Text alignment.

LayoutString

#
public LayoutString(string text)
Create a default layout string without any overrides.
text (string)Text to display.

Properties

Alignment

#
public TextAlignment Alignment { get; }
Gets the alignment for this pair. This overrides the Key/Value alignments.

Contrast

#
public float Contrast { get; }
Gets the optional colour override.

Style

#
public FontStyle Style { get; }
Gets the optional style override.

Text

#
public string Text { get; }
Gets the string text.

Convertors

OperationResultDescription
implicitstringLayoutStringConvert a regular string into a LayoutString.