Επεξεργασία

Κοινή χρήση μέσω


TaskDialogPage.EnableLinks Property

Definition

Gets or sets a value that specifies whether the task dialog should interpret strings in the form <a href="target">link Text</a> as hyperlink when specified in the Text, Text, or Text properties. When the user clicks on such a link, the LinkClicked event is raised, containing the value of the target attribute.

public:
 property bool EnableLinks { bool get(); void set(bool value); };
public bool EnableLinks { get; set; }
member this.EnableLinks : bool with get, set
Public Property EnableLinks As Boolean

Property Value

true to enable links; otherwise, false. The default value is false.

Remarks

The Task Dialog will not actually execute any links. Link execution must be handled in the LinkClicked event.

Note: Enabling this setting causes the "&" character to be interpreted as a prefix for an access key character (mnemonic) if at least one link is used. To show a literal "&" character, it must be escaped as "&&".

When you enable this setting and you want to display text without interpreting links, you must replace the strings "<a" and "<A" with something like "<\u200Ba".

Applies to