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)

適用於

另請參閱