Share via


ToolTipService.GetInitialShowDelay(DependencyObject) Método

Definição

Obtém o valor da propriedade anexada InitialShowDelay de 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 do qual o valor da propriedade é lido.

Retornos

Int32

O valor da propriedade InitialShowDelay do objeto.

Atributos

Exemplos

O exemplo a seguir mostra como obter o valor da ToolTipService.InitialShowDelay propriedade anexada. O FindName método localiza o objeto chamado ellipse2, que é um Ellipse.

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

Aplica-se a

Confira também