Sdílet prostřednictvím


ToolTipService.GetInitialShowDelay(DependencyObject) Metoda

Definice

Získá hodnotu InitialShowDelay připojené vlastnosti objektu.

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

Parametry

element
DependencyObject

Objekt, ze kterého je hodnota vlastnosti přečtená.

Návraty

Int32

Hodnota vlastnosti objektu InitialShowDelay .

Atributy

Příklady

Následující příklad ukazuje, jak získat hodnotu pro připojenou ToolTipService.InitialShowDelay vlastnost. Metoda FindName najde objekt s názvem ellipse2, což je Ellipse.

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

Platí pro

Viz také