Show / Hide Table of Contents

Class Italic

Inheritance
object
ParseCommandBase
BBCodeCommandBase
Italic
Inherited Members
BBCodeCommandBase.Tag
ParseCommandBase.CommandType
ParseCommandBase.Removed()
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: SadConsole.StringParser.BBCode
Assembly: SadConsole.dll
Syntax
public class Italic : BBCodeCommandBase

Constructors

Italic()

Declaration
public Italic()

Fields

GlyphOffset

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

Declaration
public static int GlyphOffset
Field Value
Type Description
int

Methods

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

Builds a glyph.

Declaration
public override void Build(ref ColoredGlyphAndEffect glyphState, ColoredGlyphAndEffect[] glyphString, int surfaceIndex, ICellSurface? surface, ref int stringIndex, ReadOnlySpan<char> processedString, ParseCommandStacks commandStack)
Parameters
Type Name Description
ColoredGlyphAndEffect glyphState

The current glyph being built.

ColoredGlyphAndEffect[] glyphString

The current string of glyphs that has been processed until now.

int surfaceIndex

Where on the surface this glyph will appear.

ICellSurface surface

The surface associated with the glyph.

int stringIndex

Where in the original string this glyph is from.

ReadOnlySpan<char> processedString

The entire string being processed.

ParseCommandStacks commandStack

The state of commands.

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

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

Provides the information about the tag that triggered this command.

Declaration
public override void SetBBCode(string tag, string? value, Dictionary<string, string>? parameters)
Parameters
Type Name Description
string tag

The BBCode tag condition that triggered the command.

string value

Optional value provided by the BBCode.

Dictionary<string, string> parameters

Optional parameters provided by the BBCode.

Overrides
BBCodeCommandBase.SetBBCode(string, string?, Dictionary<string, string>?)

Extension Methods

ExtensionsSystem.GetDebuggerDisplayValue(object)
In this article

Back to top

Back to top Generated by DocFX