MarkupStyles Property

Definition

Assembly XenoAtom.Terminal.dll

Gets or sets a dictionary mapping custom markup style tokens (e.g. primary, success) to styles.

[Nullable(new byte[] { (byte)2, (byte)1 })]
public Dictionary<string, AnsiStyle>? MarkupStyles { get; set; }

Returns

Remarks

This dictionary is used by WriteMarkup(String) and related methods to resolve custom markup tokens.

If you mutate the dictionary in-place, call NotifyMarkupStylesChanged() so cached markup renderers can be rebuilt. Alternatively, update styles via SetMarkupStyle(String, AnsiStyle) which invalidates automatically.