Class Ruler
Ruler renderable
Namespace: Terminaux.Writer.CyclicWriters.Simple
Assembly: Terminaux.dll
Syntax
public class Ruler : SimpleCyclicWriter
Constructors
| Edit this page View SourceRuler()
Makes a new instance of the ruler renderer
Declaration
public Ruler()
Properties
| Edit this page View SourceAlignment
Alignment of text
Declaration
public TextAlignment Alignment { get; set; }
Property Value
Type | Description |
---|---|
TextAlignment |
BackgroundColor
Background color
Declaration
public Color BackgroundColor { get; set; }
Property Value
Type | Description |
---|---|
Color |
ForegroundColor
Foreground color
Declaration
public Color ForegroundColor { get; set; }
Property Value
Type | Description |
---|---|
Color |
Height
Height of the ruler
Declaration
public int Height { get; set; }
Property Value
Type | Description |
---|---|
int |
IntersectionIndicator
Whether this ruler has intersection indicators
Declaration
public bool IntersectionIndicator { get; set; }
Property Value
Type | Description |
---|---|
bool |
Settings
Ruler style settings
Declaration
public BorderSettings Settings { get; set; }
Property Value
Type | Description |
---|---|
BorderSettings |
Text
Text to render (only for horizontal rulers)
Declaration
public string Text { get; set; }
Property Value
Type | Description |
---|---|
string |
UseColors
Whether to use colors or not
Declaration
public bool UseColors { get; set; }
Property Value
Type | Description |
---|---|
bool |
Vertical
Whether this ruler is a vertical ruler or not
Declaration
public bool Vertical { get; set; }
Property Value
Type | Description |
---|---|
bool |
Width
Width of the ruler
Declaration
public int Width { get; set; }
Property Value
Type | Description |
---|---|
int |
Methods
| Edit this page View SourceRender()
Renders a ruler
Declaration
public override string Render()
Returns
Type | Description |
---|---|
string | Rendered ruler text that will be used by the renderer |