State Class
Definition
Section titled “Definition”Represents the state of an ANSI.SYS processor.
public class StateInheritance object
Constructors
Section titled “Constructors”State()
Section titled “State()”Creates a new object to track the state of the ansi cursor.
public State()Properties
Section titled “Properties”Indicates that the state is using bold colors.
public bool Bold { get; set; }Reverse
Section titled “Reverse”Indicates that the state is printing reverse colors.
public bool Reverse { get; set; }Concealed
Section titled “Concealed”Not supported.
public bool Concealed { get; set; }Foreground
Section titled “Foreground”Foreground color for the state of the ANSI.SYS processor.
public Color Foreground { get; set; }Background
Section titled “Background”Background color for the state of the ANSI.SYS processor.
public Color Background { get; set; }Methods
Section titled “Methods”AnsiCorrectPrintColor()
Section titled “AnsiCorrectPrintColor()”Forces the Background of the print appearance to be the darkened color and the foreground to be bright or not based on the Bold property.
public void AnsiCorrectPrintColor()AnsiResetVideo()
Section titled “AnsiResetVideo()”Resets all of the print appearance and ansi settings back to the default.
public void AnsiResetVideo()