webmaster442.windowsterminal.wigets.progressbar - webmaster442/WindowsTerminal GitHub Wiki

< Back


Progressbar

Namespace: Webmaster442.WindowsTerminal.Wigets

Progress bar display

public class Progressbar : WigetBase, System.IProgress`1[System.Int32, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e](/webmaster442/WindowsTerminal/wiki/System.Int32,-System.Private.CoreLib,-Version=8.0.0.0,-Culture=neutral,-PublicKeyToken=7cec85d7bea7798e), System.IProgress`1[System.Double, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e](/webmaster442/WindowsTerminal/wiki/System.Double,-System.Private.CoreLib,-Version=8.0.0.0,-Culture=neutral,-PublicKeyToken=7cec85d7bea7798e), System.IProgress`1[System.Single, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e](/webmaster442/WindowsTerminal/wiki/System.Single,-System.Private.CoreLib,-Version=8.0.0.0,-Culture=neutral,-PublicKeyToken=7cec85d7bea7798e)

Inheritance ObjectWigetBaseProgressbar Implements IProgress<Int32>, IProgress<Double>, IProgress<Single>

Properties

IsShowing

Gets if the wiget is currently shown.

protected bool IsShowing { get; }

Property Value

Boolean

IsAlternateBuffer

Gets if the wiget is currently shown in the alternate buffer.

protected bool IsAlternateBuffer { get; }

Property Value

Boolean

Constructors

Progressbar()

Create a new progress bar

public Progressbar()

Methods

OnProgressChanged()

An overridable method that is called when the progress bar is updated

protected void OnProgressChanged()

OnHide()

Hide the progress bar

public void OnHide()

OnShow()

Show the progress bar

public void OnShow()

Report(Double)

Reports a progress update.

public void Report(double value)

Parameters

value Double The value of the updated progress.

Report(Single)

Reports a progress update.

public void Report(float value)

Parameters

value Single The value of the updated progress.

Report(Int32)

Reports a progress update.

public void Report(int value)

Parameters

value Int32 The value of the updated progress.


< Back