DataGridViewRowHeaderCell.GetInheritedContextMenuStrip(Int32) メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
指定した行の継承されたショートカット メニューを取得します。
public:
override System::Windows::Forms::ContextMenuStrip ^ GetInheritedContextMenuStrip(int rowIndex);
public override System.Windows.Forms.ContextMenuStrip GetInheritedContextMenuStrip(int rowIndex);
override this.GetInheritedContextMenuStrip : int -> System.Windows.Forms.ContextMenuStrip
Public Overrides Function GetInheritedContextMenuStrip (rowIndex As Integer) As ContextMenuStrip
パラメーター
- rowIndex
- Int32
ContextMenuStripを取得する行のインデックス。 列ヘッダーの行を示すには、インデックスを -1 する必要があります。
返品
行が存在する場合は行のContextMenuStrip。それ以外の場合は、ContextMenuStripDataGridViewから継承されます。
例外
セルの DataGridView プロパティの値が null されず、指定した rowIndex が 0 未満であるか、コントロール内の行数から 1 を引いた値を超える値です。