Class Slider
Simple slider with and without percentage support
Namespace: Terminaux.Writer.CyclicWriters.Simple
Assembly: Terminaux.dll
Syntax
public class Slider : SimpleCyclicWriter
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 |
SliderUncoloredHorizontalActiveTrackChar
Slider horizontal active track character for drawing (uncolored)
Declaration
public char SliderUncoloredHorizontalActiveTrackChar { get; set; }
Property Value
| Type | Description |
|---|---|
| char |
SliderUncoloredHorizontalInactiveTrackChar
Slider horizontal inactive track character for drawing (uncolored)
Declaration
public char SliderUncoloredHorizontalInactiveTrackChar { get; set; }
Property Value
| Type | Description |
|---|---|
| char |
SliderUncoloredVerticalActiveTrackChar
Slider vertical active track character for drawing (uncolored)
Declaration
public char SliderUncoloredVerticalActiveTrackChar { get; set; }
Property Value
| Type | Description |
|---|---|
| char |
SliderUncoloredVerticalInactiveTrackChar
Slider vertical inactive track character for drawing (uncolored)
Declaration
public char SliderUncoloredVerticalInactiveTrackChar { 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 |
UseColors
Whether to use colors or not
Declaration
public bool UseColors { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
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 override string Render()
Returns
| Type | Description |
|---|---|
| string | The result |