Contains extension methods for ProgressTask.
Methods
public static ProgressTask Description(ProgressTask task, string description)
Sets the task description.
Parameters:
task (ProgressTask)description (string)Returns:
The same instance so that multiple calls can be chained.
public static ProgressTask HideWhenCompleted(ProgressTask task, bool hideWhenCompleted = true)
Sets whether to override the default hiding behavior of this task when completed.
Parameters:
task (ProgressTask)hideWhenCompleted (bool)Returns:
The same instance so that multiple calls can be chained.
public static ProgressTask IsIndeterminate(ProgressTask task, bool indeterminate = true)
Sets whether the task is considered indeterminate or not.
Parameters:
task (ProgressTask)indeterminate (bool)Returns:
The same instance so that multiple calls can be chained.
public static ProgressTask MaxValue(ProgressTask task, double value)
Sets the max value of the task.
Parameters:
task (ProgressTask)value (double)Returns:
The same instance so that multiple calls can be chained.
public static ProgressTask Tag(ProgressTask task, object tag)
Sets the task's tag.
Parameters:
task (ProgressTask)tag (object)Returns:
The same instance so that multiple calls can be chained.
public static ProgressTask Value(ProgressTask task, double value)
Sets the value of the task.
Parameters:
task (ProgressTask)value (double)Returns:
The same instance so that multiple calls can be chained.