Share via


PointerRoutedEventArgs.GetCurrentPoint(UIElement) Método

Definição

Recupera um objeto PointerPoint que fornece informações básicas sobre o ponteiro associado ao evento.

public:
 virtual ExpPointerPoint ^ GetCurrentPoint(UIElement ^ relativeTo) = GetCurrentPoint;
public:
 virtual PointerPoint ^ GetCurrentPoint(UIElement ^ relativeTo) = GetCurrentPoint;
ExpPointerPoint GetCurrentPoint(UIElement const& relativeTo);
PointerPoint GetCurrentPoint(UIElement const& relativeTo);
public ExpPointerPoint GetCurrentPoint(UIElement relativeTo);
public PointerPoint GetCurrentPoint(UIElement relativeTo);
function getCurrentPoint(relativeTo)
function getCurrentPoint(relativeTo)
Public Function GetCurrentPoint (relativeTo As UIElement) As ExpPointerPoint
Public Function GetCurrentPoint (relativeTo As UIElement) As PointerPoint

Parâmetros

relativeTo
UIElement

Qualquer objeto derivado de UIElement conectado à mesma árvore de objetos. Para especificar o objeto relativo ao sistema de coordenadas geral, use um valor relativeTo de null.

Retornos

Um valor PointerPoint que representa o ponto de ponteiro associado a esse evento. Se null foi passado como relativeTo, as coordenadas estão no quadro de referência da janela geral. Se um valor relativeTo diferente de null foi passado, as coordenadas serão relativas ao objeto referenciado por relativeTo.

Aplica-se a