DataGridViewButtonCell.MouseLeaveUnsharesRow(Int32) 方法

定義

指示當滑鼠指標離開某列時,該列是否共用。

protected:
 override bool MouseLeaveUnsharesRow(int rowIndex);
protected override bool MouseLeaveUnsharesRow (int rowIndex);
override this.MouseLeaveUnsharesRow : int -> bool
Protected Overrides Function MouseLeaveUnsharesRow (rowIndex As Integer) As Boolean

參數

rowIndex
Int32

目前儲存格的資料列索引,如果儲存格不屬於資料列,則為 -1。

傳回

如果儲存格所顯示的按鈕是在按下的狀態則為 true,否則為 false

備註

方法 MouseLeaveUnsharesRow 會在方法之前 OnMouseLeave 呼叫。 MouseLeaveUnsharesRow如果的呼叫OnMouseLeave具有取消共用所rowIndex指定資料列的效果,則必須傳回 true 。 否則應該會傳回 false

如需數據列共用的詳細資訊,請參閱調整 DataGridView 控件 Windows Forms 最佳做法

適用於

另請參閱