Show / Hide Table of Contents

Class Recolor

Recors the foreground or the background of a cell.

Inheritance
object
CellEffectBase
Recolor
Implements
ICellEffect
Inherited Members
CellEffectBase._delayFinished
CellEffectBase._timeElapsed
CellEffectBase.Update(TimeSpan)
CellEffectBase.Restart()
CellEffectBase.IsFinished
CellEffectBase.CloneOnAdd
CellEffectBase.StartDelay
CellEffectBase.RemoveOnFinished
CellEffectBase.RestoreCellOnRemoved
CellEffectBase.RunEffectOnApply
object.GetType()
object.MemberwiseClone()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: SadConsole.Effects
Assembly: SadConsole.dll
Syntax
[DataContract]
public class Recolor : CellEffectBase, ICellEffect

Constructors

Recolor()

Creates a new instance of the effect.

Declaration
public Recolor()

Properties

Background

The background color applied to a cell.

Declaration
[DataMember]
public Color Background { get; set; }
Property Value
Type Description
Color

DoBackground

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

Declaration
[DataMember]
public bool DoBackground { get; set; }
Property Value
Type Description
bool

DoForeground

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

Declaration
[DataMember]
public bool DoForeground { get; set; }
Property Value
Type Description
bool

Foreground

The foreground color applied to a cell.

Declaration
[DataMember]
public Color Foreground { get; set; }
Property Value
Type Description
Color

Methods

ApplyToCell(ColoredGlyphBase, ColoredGlyphBase)

Applies the state of the effect to a cell.

Declaration
public override bool ApplyToCell(ColoredGlyphBase cell, ColoredGlyphBase originalState)
Parameters
Type Name Description
ColoredGlyphBase cell

The surface cell using this effect.

ColoredGlyphBase originalState

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

Returns
Type Description
bool

true when this method modified the cell; otherwise false.

Overrides
CellEffectBase.ApplyToCell(ColoredGlyphBase, ColoredGlyphBase)

Clone()

Returns a duplicate of this effect.

Declaration
public override ICellEffect Clone()
Returns
Type Description
ICellEffect

A new copy of this effect.

Overrides
CellEffectBase.Clone()

ToString()

Declaration
public override string ToString()
Returns
Type Description
string
Overrides
object.ToString()

Implements

ICellEffect

Extension Methods

ExtensionsSystem.GetDebuggerDisplayValue(object)
In this article

Back to top

Back to top Generated by DocFX