ToolTip.Active ToolTip.Active ToolTip.Active ToolTip.Active Property


获取或设置一个值,指示工具提示当前是否活动。Gets or sets a value indicating whether the ToolTip is currently active.

 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


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


使用属性, 您可以为具有此特定ToolTip组件指定的文本的所有控件启用或禁用工具提示文本显示。 ActiveWith 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设置为只会ToolTip影响当前。Although 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.