Rediger

Del via


TaskDialogPage.Icon Property

Definition

Gets or sets the main icon.

public:
 property System::Windows::Forms::TaskDialogIcon ^ Icon { System::Windows::Forms::TaskDialogIcon ^ get(); void set(System::Windows::Forms::TaskDialogIcon ^ value); };
public System.Windows.Forms.TaskDialogIcon? Icon { get; set; }
member this.Icon : System.Windows.Forms.TaskDialogIcon with get, set
Public Property Icon As TaskDialogIcon

Property Value

Exceptions

The property is set and the task dialog has started navigating to this page instance, but the Created event has not been raised yet. - or - The property is set on a page instance that is currently bound to a task dialog, but the dialog has just started navigating to a different page.

Remarks

This property can be set while the dialog is shown, however, it cannot be switched between instances created from an Icon (or from a handle pointer) and standard icon instances.

Applies to