Class ParseCommandStacks
A list of behaviors applied as a string is processed.
Inherited Members
Namespace: SadConsole.StringParser
Assembly: SadConsole.dll
Syntax
public class ParseCommandStacks
Constructors
ParseCommandStacks()
Creates new stacks of commands.
Declaration
public ParseCommandStacks()
Properties
All
All commands.
Declaration
public Stack<ParseCommandBase> All { get; set; }
Property Value
Type | Description |
---|---|
Stack<ParseCommandBase> |
Background
The commands that affect the background.
Declaration
public Stack<ParseCommandBase> Background { get; set; }
Property Value
Type | Description |
---|---|
Stack<ParseCommandBase> |
CalculatedDecorators
Returns the active array that is calculated from the Decorator stack.
Declaration
public CellDecorator[] CalculatedDecorators { get; set; }
Property Value
Type | Description |
---|---|
CellDecorator[] |
Decorator
The commands that affect the glyph decorators.
Declaration
public Stack<ParseCommandBase> Decorator { get; set; }
Property Value
Type | Description |
---|---|
Stack<ParseCommandBase> |
Effect
The commands that affect the glyph effect.
Declaration
public Stack<ParseCommandBase> Effect { get; set; }
Property Value
Type | Description |
---|---|
Stack<ParseCommandBase> |
Foreground
The commands that affect the foreground.
Declaration
public Stack<ParseCommandBase> Foreground { get; set; }
Property Value
Type | Description |
---|---|
Stack<ParseCommandBase> |
Glyph
The commands that affect the glyph.
Declaration
public Stack<ParseCommandBase> Glyph { get; set; }
Property Value
Type | Description |
---|---|
Stack<ParseCommandBase> |
Mirror
The commands that affect the mirror setting.
Declaration
public Stack<ParseCommandBase> Mirror { get; set; }
Property Value
Type | Description |
---|---|
Stack<ParseCommandBase> |
Methods
AddSafe(ParseCommandBase)
Adds a behavior to the All collection and the collection based on the CommandType type.
Declaration
public void AddSafe(ParseCommandBase command)
Parameters
Type | Name | Description |
---|---|---|
ParseCommandBase | command |
RemoveSafe(ParseCommandBase)
Removes a command from the appropriate command stack and from the All stack.
Declaration
public void RemoveSafe(ParseCommandBase command)
Parameters
Type | Name | Description |
---|---|---|
ParseCommandBase | command | The command to remove |