DataGridViewColumnHeaderCell.GetInheritedContextMenuStrip(Int32) Yöntem

Tanım

Belirtilen satır için devralınan kısayol menüsünü alır.

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

Parametreler

rowIndex
Int32

Alınacak ContextMenuStrip satırın dizini. Sütun başlıklarının satırını göstermek için dizinin -1 olması gerekir.

Döndürülenler

ContextMenuStrip

ContextMenuStrip Varsa sütun üst bilgilerinin sayısı; yoksa, ContextMenuStrip 'den DataGridViewdevralınmış olan.

Özel durumlar

rowIndex -1 değil.

Şunlara uygulanır

Ayrıca bkz.