Struct RichTextSpan
- Namespace
- Forma
- Assembly
- Forma.dll
A parsed run in a RichTextLabel document.
public readonly struct RichTextSpan
- Inherited Members
Constructors
RichTextSpan(string, Color?, bool, bool, bool, bool)
public RichTextSpan(string text, Color? color, bool bold, bool italic, bool underline, bool strikethrough)
Parameters
RichTextSpan(string, Color?, Color?, bool, bool, bool, bool, object)
public RichTextSpan(string text, Color? color, Color? backgroundColor, bool bold, bool italic, bool underline, bool strikethrough, object meta)
Parameters
textstringcolorColor?backgroundColorColor?boldboolitalicboolunderlineboolstrikethroughboolmetaobject
Properties
BackgroundColor
public Color? BackgroundColor { get; }
Property Value
- Color?
Bold
public bool Bold { get; }
Property Value
Color
public Color? Color { get; }
Property Value
- Color?
Image
Optional inline texture added through AddImage(Texture2D, float, float, Color?, object, string).
public Texture2D Image { get; }
Property Value
- Texture2D
ImageModulate
public Color ImageModulate { get; }
Property Value
- Color
ImageSize
public Vector2 ImageSize { get; }
Property Value
- Vector2
IsHorizontalRule
Whether this span is a paragraph-level horizontal rule created by AddHorizontalRule(int, int, Color?, HorizontalAlignment, bool, bool).
public bool IsHorizontalRule { get; }
Property Value
Italic
public bool Italic { get; }
Property Value
Meta
Godot-style metadata attached to this span (for example from [url] or [meta]).
public object Meta { get; }
Property Value
RuleAlignment
public HorizontalAlignment RuleAlignment { get; }
Property Value
RuleColor
public Color? RuleColor { get; }
Property Value
- Color?
RuleHeight
public int RuleHeight { get; }
Property Value
RuleHeightInPercent
public bool RuleHeightInPercent { get; }
Property Value
RuleWidth
public int RuleWidth { get; }
Property Value
RuleWidthInPercent
public bool RuleWidthInPercent { get; }
Property Value
Strikethrough
public bool Strikethrough { get; }
Property Value
Text
public string Text { get; }
Property Value
Underline
public bool Underline { get; }