ToolTip.Active Property

Definition

获取或设置一个值,指示工具提示当前是否活动。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

Property Value

Boolean

如果工具提示当前处于活动状态,则为 true;否则为 falsetrue if the ToolTip is currently active; otherwise, false. 默认为 trueThe default is true.

Remarks

使用 "Active" 属性,可以启用或禁用所有具有此特定 ToolTip 组件指定的文本的控件的工具提示文本显示。With 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.

Applies to

See also