ToolTipService.SetShowDuration(DependencyObject, Int32) 方法

定义

设置对象的附加属性的值 ShowDuration

public:
 static void SetShowDuration(System::Windows::DependencyObject ^ element, int value);
public static void SetShowDuration(System.Windows.DependencyObject element, int value);
static member SetShowDuration : System.Windows.DependencyObject * int -> unit
Public Shared Sub SetShowDuration (element As DependencyObject, value As Integer)

参数

element
DependencyObject

要向其写入附加属性的对象。

value
Int32

要设置的值。

示例

以下示例演示如何设置附加属性的值 ToolTipService.ShowDuration

ToolTipService.SetShowDuration(ellipse1, 7000);
ToolTipService.SetShowDuration(ellipse1, 7000)

适用于

另请参阅