Skip to content

Italic Class

C#
public class Italic : BBCodeCommandBase

Inheritance objectParseCommandBaseBBCodeCommandBase

C#
public Italic()

The offset applied to the glyph to get the italicized variant.

C#
public static int GlyphOffset

SetBBCode(string, string?, Dictionary<string, string>?)

Section titled “SetBBCode(string, string?, Dictionary<string, string>?)”

Provides the information about the tag that triggered this command.

C#
public override void SetBBCode(string tag, string? value, Dictionary<string, string>? parameters)

tag string
The BBCode tag condition that triggered the command.

value string
Optional value provided by the BBCode.

parameters Dictionary<string, string>
Optional parameters provided by the BBCode.

Build(ref ColoredGlyphAndEffect, ColoredGlyphAndEffect[], int, ICellSurface?, ref int, ReadOnlySpan<char>, ParseCommandStacks)

Section titled “Build(ref ColoredGlyphAndEffect, ColoredGlyphAndEffect[], int, ICellSurface?, ref int, ReadOnlySpan<char>, ParseCommandStacks)”

Builds a glyph.

C#
public override void Build(ref ColoredGlyphAndEffect glyphState, ColoredGlyphAndEffect[] glyphString, int surfaceIndex, ICellSurface? surface, ref int stringIndex, ReadOnlySpan<char> processedString, ParseCommandStacks commandStack)

glyphState ColoredGlyphAndEffect
The current glyph being built.

glyphString ColoredGlyphAndEffect[]
The current string of glyphs that has been processed until now.

surfaceIndex int
Where on the surface this glyph will appear.

surface ICellSurface
The surface associated with the glyph.

stringIndex int
Where in the original string this glyph is from.

processedString ReadOnlySpan<char>
The entire string being processed.

commandStack ParseCommandStacks
The state of commands.