ProgressTaskExtensions

Contains extension methods for .

Contains extension methods for ProgressTask.

Methods

public static ProgressTask Description(ProgressTask task, string description)

Sets the task description.

Parameters:

task (ProgressTask)
The task.
description (string)
The description.

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)
The task.
hideWhenCompleted (bool)
Whether the task should be hidden once completed or not.

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)
The task.
indeterminate (bool)
Whether the task is considered indeterminate or not.

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)
The task.
value (double)
The max value.

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)
The task.
tag (object)
The tag.

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)
The task.
value (double)
The value.

Returns:

The same instance so that multiple calls can be chained.