Class Ruler
Ruler renderable
Inheritance
Namespace
Syntax
public class Ruler : SimpleCyclicWriter
Constructors
Ruler()
Makes a new instance of the ruler renderer
Declaration
public Ruler()
Properties
Alignment
Alignment of text
BackgroundColor
Background color
Property Value
Color
Declaration
public Color BackgroundColor { get; set; }
ForegroundColor
Foreground color
Property Value
Color
Declaration
public Color ForegroundColor { get; set; }
Height
Height of the ruler
Property Value
int
Declaration
public int Height { get; set; }
IntersectionIndicator
Whether this ruler has intersection indicators
Property Value
bool
Declaration
public bool IntersectionIndicator { get; set; }
Settings
Ruler style settings
Text
Text to render (only for horizontal rulers)
Property Value
string
Declaration
public string Text { get; set; }
UseColors
Whether to use colors or not
Property Value
bool
Declaration
public bool UseColors { get; set; }
Vertical
Whether this ruler is a vertical ruler or not
Property Value
bool
Declaration
public bool Vertical { get; set; }
Width
Width of the ruler
Property Value
int
Declaration
public int Width { get; set; }
Methods
Render()
Renders a ruler
Returns
string
Rendered ruler text that will be used by the renderer
Declaration
public override string Render()