Class Slider
Simple slider with and without percentage support
Inheritance
Namespace
Syntax
public class Slider : SimpleCyclicWriter
Constructors
Slider(int, int, int)
Makes a new instance of simple slider
Declaration
public Slider(int position, int minPosition, int maxPosition)
Parameters
| Name | Type | Description |
|---|---|---|
| position | int | Current position |
| minPosition | int | Min position |
| maxPosition | int | Max position |
Properties
Height
Height of the vertical slider
Property Value
Declaration
public int Height { get; set; }
Position
Position of the slider
Property Value
Declaration
public int Position { get; set; }
SliderActiveForegroundColor
Slider active foreground
Property Value
Declaration
public Color SliderActiveForegroundColor { get; set; }
SliderBackgroundColor
Slider background
Property Value
Declaration
public Color SliderBackgroundColor { get; set; }
SliderForegroundColor
Slider foreground
Property Value
Declaration
public Color SliderForegroundColor { get; set; }
SliderHorizontalActiveTrackChar
Slider horizontal active track character for drawing
Property Value
Declaration
public char SliderHorizontalActiveTrackChar { get; set; }
SliderHorizontalInactiveTrackChar
Slider horizontal inactive track character for drawing
Property Value
Declaration
public char SliderHorizontalInactiveTrackChar { get; set; }
SliderUncoloredHorizontalActiveTrackChar
Slider horizontal active track character for drawing (uncolored)
Property Value
Declaration
public char SliderUncoloredHorizontalActiveTrackChar { get; set; }
SliderUncoloredHorizontalInactiveTrackChar
Slider horizontal inactive track character for drawing (uncolored)
Property Value
Declaration
public char SliderUncoloredHorizontalInactiveTrackChar { get; set; }
SliderUncoloredVerticalActiveTrackChar
Slider vertical active track character for drawing (uncolored)
Property Value
Declaration
public char SliderUncoloredVerticalActiveTrackChar { get; set; }
SliderUncoloredVerticalInactiveTrackChar
Slider vertical inactive track character for drawing (uncolored)
Property Value
Declaration
public char SliderUncoloredVerticalInactiveTrackChar { get; set; }
SliderVerticalActiveTrackChar
Slider vertical active track character for drawing
Property Value
Declaration
public char SliderVerticalActiveTrackChar { get; set; }
SliderVerticalInactiveTrackChar
Slider vertical inactive track character for drawing
Property Value
Declaration
public char SliderVerticalInactiveTrackChar { get; set; }
UseColors
Whether to use colors or not
Property Value
Declaration
public bool UseColors { get; set; }
Vertical
Specifies whether the slider is vertical or horizontal
Property Value
Declaration
public bool Vertical { get; set; }
Width
Width of the horizontal slider
Property Value
Declaration
public int Width { get; set; }
Methods
Render()
Renders a scrolling text slider
Returns
The result
Declaration
public override string Render()