Skip to content

ColoredGlyphAndEffect Class

A ColoredGlyphBase with a ICellEffect.

C#
public sealed class ColoredGlyphAndEffect : ColoredGlyph, IMatchable<ColoredGlyphBase>, IMatchable<ColoredGlyph>, IMatchable<ColoredGlyphAndEffect>

Inheritance objectColoredGlyphBaseColoredGlyph

Implements IMatchable<ColoredGlyphBase>, IMatchable<ColoredGlyph>, IMatchable<ColoredGlyphAndEffect>

C#
public ColoredGlyphAndEffect()

The effect of this cell.

C#
public ICellEffect? Effect { get; set; }

FromColoredGlyph(ColoredGlyphBase, ICellEffect?)

Section titled “FromColoredGlyph(ColoredGlyphBase, ICellEffect?)”

Creates a new ColoredGlyphAndEffect from a ColoredGlyphBase with the specified effect.

C#
public static ColoredGlyphAndEffect FromColoredGlyph(ColoredGlyphBase glyph, ICellEffect? effect = null)

glyph ColoredGlyphBase
The glyph.

effect ICellEffect
When provided, sets the Effect.

ColoredGlyphAndEffect

CopyAppearanceTo(ColoredGlyphAndEffect, bool)

Section titled “CopyAppearanceTo(ColoredGlyphAndEffect, bool)”

Copies the visual appearance to the specified cell. This includes foreground, background, glyph, mirror effect and decorators.

C#
public void CopyAppearanceTo(ColoredGlyphAndEffect cell, bool deepCopy = true)

cell ColoredGlyphAndEffect
The target cell to copy to.

deepCopy bool
Whether to perform a deep copy. Decorators are copied to a new array when true; when false, the old decorator array reference is moved directly.

CopyAppearanceFrom(ColoredGlyphAndEffect, bool)

Section titled “CopyAppearanceFrom(ColoredGlyphAndEffect, bool)”

Sets the foreground, background, glyph, mirror effect and decorators to the same as the specified cell.

C#
public void CopyAppearanceFrom(ColoredGlyphAndEffect cell, bool deepCopy = true)

cell ColoredGlyphAndEffect
The target cell to copy from.

deepCopy bool
Whether to perform a deep copy. Decorators are copied to a new array when true; when false, the old decorator array reference is moved directly.

Resets the foreground, background, glyph, mirror effect and decorators.

C#
public override void Clear()

Returns a new cell with the same properties as this one.

C#
public override ColoredGlyphBase Clone()

ColoredGlyphBase
The new cell.

Checks if this ColoredGlyphAndEffect object’s properties match another’s.

C#
public bool Matches(ColoredGlyphAndEffect? other)

other ColoredGlyphAndEffect
The other object to check.

bool
Returns true when the object’s properties match; otherwise false.