Edit

Kongsi melalui


TaskDialogProgressBar.Maximum Property

Definition

Gets or sets the maximum value of the range of the control.

public:
 property int Maximum { int get(); void set(int value); };
public int Maximum { get; set; }
member this.Maximum : int with get, set
Public Property Maximum As Integer

Property Value

The maximum value of the range. The default is 100.

Exceptions

The value is less than 0 or greater than UInt16.MaxValue.

The property is set on a progress bar instance that is currently bound to a task dialog, but it's not visible as its initial State property value was None. - or - The property is set on a progress bar instance that is currently bound to a task dialog, but the dialog has just started navigating to a different page.

Remarks

This value is only used if the progress bar is not a marquee progress bar (as defined by the State property).

This property can be set while the dialog is shown.

Applies to