ToolTip.Active 屬性

定義

取得或設定值,指出工具提示目前是否在作用中。Gets or sets a value indicating whether the ToolTip is currently active.

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

屬性值

Boolean

如果工具提示目前在作用中,則為 true,否則為 falsetrue if the ToolTip is currently active; otherwise, false. 預設為 trueThe default is true.

備註

使用 Active 屬性時,您可以啟用或停用此特定元件所指定之文字的所有控制項的工具提示文字顯示 ToolTipWith the Active property, you can enable or disable the display of ToolTip text for all controls that have text specified by this particular ToolTip component. 雖然可以建立一個以上的 ToolTip 元件,並將其指派給表單,但將 Active 屬性設為 false 只會影響目前的 ToolTipAlthough more than one ToolTip component can be created and assigned to a form, setting the Active property to false only affects the current ToolTip. 您可以讓使用者使用提供應用程式選項的表單來設定這個屬性的值。You can enable users to set the value of this property in a form that provides application options. 這些選項可讓使用者在您的應用程式中啟用或停用工具提示的顯示功能。These options, in turn, provide the user with the ability to enable or disable the display of ToolTips in your application.

適用於

另請參閱