Skip to content

Recolor Class

Recors the foreground or the background of a cell.

C#
[DataContract]
public class Recolor : CellEffectBase, ICellEffect

Inheritance objectCellEffectBase

Implements ICellEffect

Creates a new instance of the effect.

C#
public Recolor()

The foreground color applied to a cell.

C#
[DataMember]
public Color Foreground { get; set; }

The background color applied to a cell.

C#
[DataMember]
public Color Background { get; set; }

When true, the Foreground color will be applied to the cell.

C#
[DataMember]
public bool DoForeground { get; set; }

/// When true, the Background color will be applied to the cell.

C#
[DataMember]
public bool DoBackground { get; set; }

ApplyToCell(ColoredGlyphBase, ColoredGlyphBase)

Section titled “ApplyToCell(ColoredGlyphBase, ColoredGlyphBase)”

Applies the state of the effect to a cell.

C#
public override bool ApplyToCell(ColoredGlyphBase cell, ColoredGlyphBase originalState)

cell ColoredGlyphBase
The surface cell using this effect.

originalState ColoredGlyphBase
The state of the cell prior to the effect being applied.

bool
true when this method modified the cell; otherwise false.

Returns a duplicate of this effect.

C#
public override ICellEffect Clone()

ICellEffect
A new copy of this effect.

C#
public override string ToString()

string