Class Slider
Simple slider with and without percentage support
Inheritance
object
Slider
Implements
Namespace: Terminaux.Writer.CyclicWriters
Assembly: Terminaux.dll
Syntax
public class Slider : IStaticRenderable
Constructors
| Edit this page View SourceSlider(int, int, int)
Makes a new instance of simple slider
Declaration
public Slider(int position, int minPosition, int maxPosition)
Parameters
Type | Name | Description |
---|---|---|
int | position | Current position |
int | minPosition | Min position |
int | maxPosition | Max position |
Properties
| Edit this page View SourceHeight
Height of the vertical slider
Declaration
public int Height { get; set; }
Property Value
Type | Description |
---|---|
int |
Position
Position of the slider
Declaration
public int Position { get; set; }
Property Value
Type | Description |
---|---|
int |
SliderActiveForegroundColor
Slider active foreground
Declaration
public Color SliderActiveForegroundColor { get; set; }
Property Value
Type | Description |
---|---|
Color |
SliderBackgroundColor
Slider background
Declaration
public Color SliderBackgroundColor { get; set; }
Property Value
Type | Description |
---|---|
Color |
SliderForegroundColor
Slider foreground
Declaration
public Color SliderForegroundColor { get; set; }
Property Value
Type | Description |
---|---|
Color |
SliderHorizontalActiveTrackChar
Slider horizontal active track character for drawing
Declaration
public char SliderHorizontalActiveTrackChar { get; set; }
Property Value
Type | Description |
---|---|
char |
SliderHorizontalInactiveTrackChar
Slider horizontal inactive track character for drawing
Declaration
public char SliderHorizontalInactiveTrackChar { get; set; }
Property Value
Type | Description |
---|---|
char |
SliderVerticalActiveTrackChar
Slider vertical active track character for drawing
Declaration
public char SliderVerticalActiveTrackChar { get; set; }
Property Value
Type | Description |
---|---|
char |
SliderVerticalInactiveTrackChar
Slider vertical inactive track character for drawing
Declaration
public char SliderVerticalInactiveTrackChar { get; set; }
Property Value
Type | Description |
---|---|
char |
Vertical
Specifies whether the slider is vertical or horizontal
Declaration
public bool Vertical { get; set; }
Property Value
Type | Description |
---|---|
bool |
Width
Width of the horizontal slider
Declaration
public int Width { get; set; }
Property Value
Type | Description |
---|---|
int |
Methods
| Edit this page View SourceRender()
Renders a scrolling text slider
Declaration
public string Render()
Returns
Type | Description |
---|---|
string | The result |