Class ProgressBarBase
Inheritance
System.Object
ProgressBarBase
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: Mars.IO.dll
Syntax
public abstract class ProgressBarBase
Constructors
|
Improve this Doc
View Source
ProgressBarBase(Int32, String, ProgressBarOptions)
Declaration
protected ProgressBarBase(int maxTicks, string message, ProgressBarOptions options)
Parameters
Type |
Name |
Description |
System.Int32 |
maxTicks |
|
System.String |
message |
|
ProgressBarOptions |
options |
|
Fields
|
Improve this Doc
View Source
StartDateTime
Declaration
protected readonly DateTime StartDateTime
Field Value
Type |
Description |
System.DateTime |
|
Properties
|
Improve this Doc
View Source
Collapse
Declaration
public bool Collapse { get; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
EndTime
Declaration
public DateTime? EndTime { get; protected set; }
Property Value
Type |
Description |
System.Nullable<System.DateTime> |
|
|
Improve this Doc
View Source
ForegroundColor
Declaration
public ConsoleColor ForegroundColor { get; }
Property Value
Type |
Description |
System.ConsoleColor |
|
|
Improve this Doc
View Source
MaxTicks
Declaration
public int MaxTicks { get; }
Property Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
Message
Declaration
public string Message { get; }
Property Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Percentage
Declaration
public double Percentage { get; }
Property Value
Type |
Description |
System.Double |
|
Methods
|
Improve this Doc
View Source
DisplayProgress()
Declaration
protected abstract void DisplayProgress()
|
Improve this Doc
View Source
GetDurationString(TimeSpan)
Declaration
protected static string GetDurationString(TimeSpan duration)
Parameters
Type |
Name |
Description |
System.TimeSpan |
duration |
|
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
OnDone()
Declaration
protected virtual void OnDone()
|
Improve this Doc
View Source
Tick(Int32, String)
Declaration
public void Tick(int newTickCount, string message = null)
Parameters
Type |
Name |
Description |
System.Int32 |
newTickCount |
|
System.String |
message |
|
|
Improve this Doc
View Source
Tick(String)
Declaration
public void Tick(string message = null)
Parameters
Type |
Name |
Description |
System.String |
message |
|
Extension Methods