Table of Contents

Class ColorCode

Namespace
MLEM.Formatting.Codes
Assembly
MLEM.dll

An instance of a formatting code that can be used for a TextFormatter. To add a new formatting code, see Codes

public class ColorCode : Code, IGenericDataHolder
Inheritance
ColorCode
Implements
Inherited Members

Constructors

ColorCode(Match, Regex, Color?)

public ColorCode(Match match, Regex regex, Color? color)

Parameters

match Match
regex Regex
color Color?

Methods

GetColor(Color)

Get the color that this token will be rendered with

public override Color? GetColor(Color defaultPick)

Parameters

defaultPick Color

The default color, if none is specified

Returns

Color?

The color to render with