Search Results for

    Class ProgressBar

    Progress bar with text

    Inheritance
    object
    CyclicWriter
    SimpleCyclicWriter
    ProgressBar
    Namespace
    Terminaux.Writer.CyclicWriters.Simple @ Terminaux.dll
    Syntax
    public class ProgressBar : SimpleCyclicWriter


    Constructors

    ProgressBar(Mark, int, int, Spinner?, TextMarquee?, params object?[]?)

    Makes a new instance of progress bar

    Declaration
    public ProgressBar(Mark text, int position, int maxPosition, Spinner? progressSpinner = null, TextMarquee? progressMarquee = null, params object?[]? args)
    Parameters
    Name Type Description
    text Mark

    Text to render. All VT sequences and control characters are trimmed away.

    position int

    Current position

    maxPosition int

    Max position

    progressSpinner Spinner

    Spinner instance to use, or SpinMore

    progressMarquee TextMarquee

    Marquee writer to use

    args object[]

    Arguments to format the string with



    Properties

    Accurate

    Specifies whether the progress bar uses unicode block characters to accurately describe progress or not.

    Remarks

    If Indeterminate is true, this won't be applied.

    Property Value
    bool
    Declaration
    public bool Accurate { get; set; }

    Delay

    Delay interval for marquee. The default is 30 ticks for 100 milliseconds, but you can adjust it, depending on the speed of the loop.

    Property Value
    int
    Declaration
    public int Delay { get; set; }

    Indeterminate

    Specifies whether the progress is indeterminate

    Property Value
    bool
    Declaration
    public bool Indeterminate { get; set; }

    Position

    Position of the progress bar

    Property Value
    int
    Declaration
    public int Position { get; set; }

    ProgressActiveForegroundColor

    Progress active foreground

    Property Value
    Color
    Declaration
    public Color ProgressActiveForegroundColor { get; set; }

    ProgressBackgroundColor

    Progress background

    Property Value
    Color
    Declaration
    public Color ProgressBackgroundColor { get; set; }

    ProgressFailedActiveForegroundColor

    Progress failed active foreground

    Property Value
    Color
    Declaration
    public Color ProgressFailedActiveForegroundColor { get; set; }

    ProgressFailedForegroundColor

    Progress failed foreground

    Property Value
    Color
    Declaration
    public Color ProgressFailedForegroundColor { get; set; }

    ProgressForegroundColor

    Progress foreground

    Property Value
    Color
    Declaration
    public Color ProgressForegroundColor { get; set; }

    ProgressHorizontalActiveTrackChar

    Progress horizontal active track character for drawing

    Remarks

    If Accurate is enabled, this property is ignored.

    Property Value
    char
    Declaration
    public char ProgressHorizontalActiveTrackChar { get; set; }

    ProgressHorizontalInactiveTrackChar

    Progress horizontal inactive track character for drawing

    Remarks

    If Accurate is enabled, this property is ignored.

    Property Value
    char
    Declaration
    public char ProgressHorizontalInactiveTrackChar { get; set; }

    ProgressPausedActiveForegroundColor

    Progress paused active foreground

    Property Value
    Color
    Declaration
    public Color ProgressPausedActiveForegroundColor { get; set; }

    ProgressPausedForegroundColor

    Progress paused foreground

    Property Value
    Color
    Declaration
    public Color ProgressPausedForegroundColor { get; set; }

    ProgressPercentageTextColor

    Progress percentage text color

    Property Value
    Color
    Declaration
    public Color ProgressPercentageTextColor { get; set; }

    ProgressSpinnerTextColor

    Progress spinner color

    Property Value
    Color
    Declaration
    public Color ProgressSpinnerTextColor { get; set; }

    ProgressTextColor

    Progress text color

    Property Value
    Color
    Declaration
    public Color ProgressTextColor { get; set; }

    ProgressUncoloredHorizontalActiveTrackChar

    Progress horizontal active track character for drawing (uncolored)

    Remarks

    If Accurate is enabled, this property is ignored.

    Property Value
    char
    Declaration
    public char ProgressUncoloredHorizontalActiveTrackChar { get; set; }

    ProgressUncoloredHorizontalInactiveTrackChar

    Progress horizontal inactive track character for drawing (uncolored)

    Remarks

    If Accurate is enabled, this property is ignored.

    Property Value
    char
    Declaration
    public char ProgressUncoloredHorizontalInactiveTrackChar { get; set; }

    ProgressUncoloredVerticalActiveTrackChar

    Progress vertical active track character for drawing (uncolored)

    Remarks

    If Accurate is enabled, this property is ignored.

    Property Value
    char
    Declaration
    public char ProgressUncoloredVerticalActiveTrackChar { get; set; }

    ProgressUncoloredVerticalInactiveTrackChar

    Progress vertical inactive track character for drawing (uncolored)

    Remarks

    If Accurate is enabled, this property is ignored.

    Property Value
    char
    Declaration
    public char ProgressUncoloredVerticalInactiveTrackChar { get; set; }

    ProgressVerticalActiveTrackChar

    Progress vertical active track character for drawing

    Remarks

    If Accurate is enabled, this property is ignored.

    Property Value
    char
    Declaration
    public char ProgressVerticalActiveTrackChar { get; set; }

    ProgressVerticalInactiveTrackChar

    Progress vertical inactive track character for drawing

    Remarks

    If Accurate is enabled, this property is ignored.

    Property Value
    char
    Declaration
    public char ProgressVerticalInactiveTrackChar { get; set; }

    ProgressWarningActiveForegroundColor

    Progress warning active foreground

    Property Value
    Color
    Declaration
    public Color ProgressWarningActiveForegroundColor { get; set; }

    ProgressWarningForegroundColor

    Progress warning foreground

    Property Value
    Color
    Declaration
    public Color ProgressWarningForegroundColor { get; set; }

    ShowPercentage

    Specifies whether the progress bar shows percentage or not (ignored in indeterminate progress bars)

    Property Value
    bool
    Declaration
    public bool ShowPercentage { get; set; }

    State

    State of the progress bar

    Property Value
    ProgressState
    Declaration
    public ProgressState State { get; set; }

    Text

    Text to render. All VT sequences and control characters are trimmed away.

    Property Value
    string
    Declaration
    public string Text { get; }

    UseColors

    Whether to use colors or not

    Property Value
    bool
    Declaration
    public bool UseColors { get; set; }

    Width

    Width of the progress bar

    Property Value
    int
    Declaration
    public int Width { get; set; }


    Methods

    Render()

    Renders a scrolling text progress bar

    Returns
    string

    The result

    Declaration
    public override string Render()
    Overrides
    CyclicWriter.Render()
    Show / Hide Table of Contents

    Table of contents



      About

      Copyright © 2014-2026 Aptivi

      Find us

    •  
    •  
    •  
    •  
    •  
    •  
    • Social media

    •  
    •  
    •  
    •