BBCodeParser Class
Parses BBCode-style markup into styled text runs. Supported tags: [color=#RRGGBB], [size=N], [b], [i], [u], [s]
public sealed class BBCodeParser : Brine2D.Rendering.Text.IMarkupParser
Inheritance System.Object → BBCodeParser
Implements IMarkupParser
Example¶
var parser = new BBCodeParser();
var runs = parser.Parse(
"Hello [color=#FF0000]World[/color]!",
new TextRenderOptions());
| Methods | |
|---|---|
| Parse(string, TextRenderOptions) | Parse markup text into a collection of styled text runs. |