ToolTipService.GetInitialShowDelay(DependencyObject) Metodo

Definizione

Ottiene il valore della proprietà associata InitialShowDelay per un oggetto.

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

Parametri

element
DependencyObject

Oggetto da cui viene letto il valore della proprietà.

Restituisce

Il valore della proprietà InitialShowDelay dell'oggetto.

Attributi

Esempio

Nell'esempio seguente viene illustrato come ottenere il valore per la ToolTipService.InitialShowDelay proprietà associata. Il FindName metodo trova l'oggetto denominato ellipse2, che è un Ellipseoggetto .

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

Si applica a

Vedi anche