ToolTipService.GetBetweenShowDelay(DependencyObject) 方法

定义

获取对象的 BetweenShowDelay 附加属性的值。

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

参数

element
DependencyObject

从中读取属性值的对象。

返回

Int32

对象的 BetweenShowDelay 属性值。

属性

示例

以下示例演示如何获取附加属性的值 ToolTipService.BetweenShowDelay 。 该方法 FindName 查找调用 ellipse2的对象,该对象是一个 Ellipse

int myInt = ToolTipService.GetBetweenShowDelay(
             (DependencyObject)FindName("ellipse2"));
Dim myInt As Integer = ToolTipService.GetBetweenShowDelay(CType(FindName("ellipse2"), DependencyObject))

适用于

另请参阅