ToolTipService.GetInitialShowDelay(DependencyObject) Метод

Определение

Получает значение присоединенного свойства InitialShowDelay для объекта.

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

Параметры

element
DependencyObject

Объект, из которого считывается значение свойства.

Возвращаемое значение

Int32

Значение свойства объекта InitialShowDelay.

Атрибуты

Примеры

В следующем примере показано, как получить значение для присоединенного ToolTipService.InitialShowDelay свойства. Метод FindName находит вызываемый ellipse2объект , который является .Ellipse

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

Применяется к

См. также раздел