Basic Library for UWP/WinRT XAML
GetPosition(RoutedEventArgs,UIElement) メソッド

操作データを含む Windows.UI.Xaml.RoutedEventArgs インスタンス。
同じオブジェクトツリーに接続された UIElement 派生オブジェクト。座標系全体に対するオブジェクトの位置を指定するには、relativeTo の値を null にします。
ポインタまたは指の位置を取得します。
構文
'宣言
 
Public Overloads Shared Function GetPosition( _
   ByVal args As Windows.UI.Xaml.RoutedEventArgs, _
   ByVal relativeTo As Windows.UI.Xaml.UIElement _
) As Windows.Foundation.Point
public static Windows.Foundation.Point GetPosition( 
   Windows.UI.Xaml.RoutedEventArgs args,
   Windows.UI.Xaml.UIElement relativeTo
)

パラメータ

args
操作データを含む Windows.UI.Xaml.RoutedEventArgs インスタンス。
relativeTo
同じオブジェクトツリーに接続された UIElement 派生オブジェクト。座標系全体に対するオブジェクトの位置を指定するには、relativeTo の値を null にします。
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

参照

関連項目

C1InputEventArgs クラス
C1InputEventArgs メンバ
オーバーロード一覧

Send Feedback