次の方法で共有


DocumentDesigner.OnContextMenu メソッド

コンテキスト メニューを表示する必要があるときに呼び出されます。

Overrides Protected Sub OnContextMenu( _
   ByVal x As Integer, _   ByVal y As Integer _)
[C#]
protected override void OnContextMenu(intx,inty);
[C++]
protected: void OnContextMenu(intx,inty);
[JScript]
protected override function OnContextMenu(
   x : int,y : int);

パラメータ

  • x
    コンテキスト メニューを表示する位置の水平画面座標。
  • y
    コンテキスト メニューを表示する位置の垂直画面座標。

解説

このメソッドは、ドキュメント デザイナのコンテキスト メニューを表示します。

必要条件

プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ

.NET Framework セキュリティ:

参照

DocumentDesigner クラス | DocumentDesigner メンバ | System.Windows.Forms.Design 名前空間