다음을 통해 공유


PointerEventArgs.GetPosition(Element) 메서드

정의

파생 클래스에서 재정의되는 경우 포인터의 위치를 가져옵니다.

public:
 virtual Nullable<Microsoft::Maui::Graphics::Point> GetPosition(Microsoft::Maui::Controls::Element ^ relativeTo);
public virtual Microsoft.Maui.Graphics.Point? GetPosition (Microsoft.Maui.Controls.Element? relativeTo);
abstract member GetPosition : Microsoft.Maui.Controls.Element -> Nullable<Microsoft.Maui.Graphics.Point>
override this.GetPosition : Microsoft.Maui.Controls.Element -> Nullable<Microsoft.Maui.Graphics.Point>
Public Overridable Function GetPosition (relativeTo As Element) As Nullable(Of Point)

매개 변수

relativeTo
Element

포인터를 측정할 위치입니다.

반환

에 상대적인 위치입니다 Element.

설명

기본적으로 요소를 기준으로 포인터의 위치를 가져옵니다.

적용 대상