ToolTipService.GetInitialShowDelay(DependencyObject) Método

Definição

Obtém o valor da InitialShowDelay propriedade associada para um objeto.

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

Parâmetros

element
DependencyObject

O objeto a partir do qual o valor da propriedade é lido.

Devoluções

O valor da InitialShowDelay propriedade do objeto.

Atributos

Exemplos

O exemplo seguinte mostra como obter o valor do ToolTipService.InitialShowDelay imóvel anexado. O FindName método encontra o objeto chamado ellipse2, que é um Ellipse.

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

Aplica-se a

Ver também