ToolTipService.GetShowDuration(DependencyObject) メソッド

定義

オブジェクトの ShowDuration 添付プロパティの値を取得します。

public:
 static int GetShowDuration(System::Windows::DependencyObject ^ element);
[System.Windows.AttachedPropertyBrowsableForType(typeof(System.Windows.DependencyObject))]
public static int GetShowDuration(System.Windows.DependencyObject element);
[<System.Windows.AttachedPropertyBrowsableForType(typeof(System.Windows.DependencyObject))>]
static member GetShowDuration : System.Windows.DependencyObject -> int
Public Shared Function GetShowDuration (element As DependencyObject) As Integer

パラメーター

element
DependencyObject

プロパティ値の読み取り元のオブジェクト。

返品

オブジェクトの ShowDuration プロパティ値。

属性

次の例は、 ToolTipService.ShowDuration 添付プロパティの値を取得する方法を示しています。 FindName メソッドは、Ellipseである ellipse2 というオブジェクトを検索します。

myInt = ToolTipService.GetShowDuration(
              (DependencyObject)FindName("ellipse2"));
myInt = ToolTipService.GetShowDuration(CType(FindName("ellipse2"), DependencyObject))

適用対象

こちらもご覧ください