ToolTip.AutomaticDelay Property


获取或设置工具提示的自动延迟。Gets or sets the automatic delay for the ToolTip.

 property int AutomaticDelay { int get(); void set(int value); };
public int AutomaticDelay { get; set; }
member this.AutomaticDelay : int with get, set
Public Property AutomaticDelay As Integer

Property Value


自动延迟(以毫秒为单位)。The automatic delay, in milliseconds. 默认值为 500。The default is 500.


利用 AutomaticDelay 属性,您可以设置一个延迟值,该值随后用于设置 AutoPopDelayInitialDelayReshowDelay 属性的值。The AutomaticDelay property enables you to set a single delay value, which is then used to set the values of the AutoPopDelay, InitialDelay, and ReshowDelay properties. 每次设置 AutomaticDelay 属性时,将默认设置以下值。Each time the AutomaticDelay property is set, the following values are set by default.

属性Property 默认值Default Value
AutoPopDelay AutomaticDelay 属性值的10倍。10 times the AutomaticDelay property value.
InitialDelay 等于 AutomaticDelay 属性值。Equal to the AutomaticDelay property value.
ReshowDelay AutomaticDelay 属性值为1/5。1/5 of the AutomaticDelay property value.

设置 AutomaticDelay 属性后,也可以单独设置这些属性。These properties can also be set independently once the AutomaticDelay property has been set. 有关详细信息,请参阅 AutoPopDelayInitialDelayReshowDelay 属性。For more information, see the AutoPopDelay, InitialDelay, and ReshowDelay properties. 此属性通常用于为工具提示窗口提供一致的延迟模式。This property is typically used to provide a consistent delay pattern for your ToolTip windows.

Applies to

See also