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 、 という名前 ellipse2の オブジェクトを検索します。これは です Ellipse

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

適用対象

こちらもご覧ください