ContextMenuEventArgs クラス

定義

複数のテキスト関連 UI 要素に存在する ContextMenuOpening イベントのイベント データを提供します。

public ref class ContextMenuEventArgs sealed : RoutedEventArgs
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class ContextMenuEventArgs final : RoutedEventArgs
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class ContextMenuEventArgs : RoutedEventArgs
Public NotInheritable Class ContextMenuEventArgs
Inherits RoutedEventArgs
継承
Object Platform::Object IInspectable RoutedEventArgs ContextMenuEventArgs
属性

Windows の要件

デバイス ファミリ
Windows 10 (10.0.10240.0 で導入)
API contract
Windows.Foundation.UniversalApiContract (v1.0 で導入)

プロパティ

CursorLeft

テキスト カーソルの水平方向の位置のピクセル オフセットを取得します。

CursorTop

テキスト カーソルの垂直方向の位置のピクセル オフセットを取得します。

Handled

ルーティング イベントを処理済みとしてマークする値を取得または設定します。 Handled の true 値を指定すると、イベント ルートに沿ったほとんどのハンドラーが同じイベントを再び処理できなくなります。

OriginalSource

イベントを発生させたオブジェクトへの参照を取得します。 これは多くの場合、アプリ UI で宣言された要素ではなく、コントロールのテンプレート部分です。

(継承元 RoutedEventArgs)

適用対象

こちらもご覧ください