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 PointerPoint ^ GetCurrentPoint(UIElement ^ relativeTo) = GetCurrentPoint;
PointerPoint GetCurrentPoint(UIElement const& relativeTo);
public PointerPoint GetCurrentPoint(UIElement relativeTo);
function getCurrentPoint(relativeTo)
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 nulo.

Retornos

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

Aplica-se a