DataGridViewHeaderCell.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

滑鼠指標離開的資料列之索引。

傳回

trueButtonState如果屬性值不是 Normal,則會啟用可視化樣式,而 EnableHeadersVisualStyles 屬性為 true,而 DataGridView 屬性則為 null,否則false為 。

備註

如需啟用可視化樣式的詳細資訊,請參閱 Application.EnableVisualStyles 方法。

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

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

適用於

另請參閱