DataGridViewHeaderCell.GetInheritedContextMenuStrip(Int32) メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
ヘッダー セルのショートカット メニューを取得します。
public:
override System::Windows::Forms::ContextMenuStrip ^ GetInheritedContextMenuStrip(int rowIndex);
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 または DataGridViewHeaderCell にショートカット メニューが割り当てられている場合は DataGridView。それ以外の場合は null。
注釈
に DataGridViewHeaderCell ショートカット メニューがない場合、 DataGridViewHeaderCell は からショートカット メニューを DataGridView継承します。
DataGridViewにもショートカット メニューがない場合、 メソッドは をGetInheritedContextMenuStrip返nullします。