共用方式為


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))

適用於

另請參閱