DataGridViewHeaderCell.MouseUpUnsharesRow(DataGridViewCellMouseEventArgs) DataGridViewHeaderCell.MouseUpUnsharesRow(DataGridViewCellMouseEventArgs) DataGridViewHeaderCell.MouseUpUnsharesRow(DataGridViewCellMouseEventArgs) DataGridViewHeaderCell.MouseUpUnsharesRow(DataGridViewCellMouseEventArgs) Method

定義

指出當指標位於某資料列的儲存格上,並釋放滑鼠按鈕時,是否會取消共用該資料列。Indicates whether a row will be unshared when the mouse button is released while the pointer is on a cell in the row.

protected:
 override bool MouseUpUnsharesRow(System::Windows::Forms::DataGridViewCellMouseEventArgs ^ e);
protected override bool MouseUpUnsharesRow (System.Windows.Forms.DataGridViewCellMouseEventArgs e);
override this.MouseUpUnsharesRow : System.Windows.Forms.DataGridViewCellMouseEventArgs -> bool
Protected Overrides Function MouseUpUnsharesRow (e As DataGridViewCellMouseEventArgs) As Boolean

參數

傳回

如果使用者放開滑鼠左鍵、啟用視覺化樣式,且 EnableHeadersVisualStyles 屬性為 true 時,則為 true,否則為 falsetrue if the left mouse button was released, visual styles are enabled, and the EnableHeadersVisualStyles property is true; otherwise, false.

備註

如需啟用視覺化樣式的詳細資訊, Application.EnableVisualStyles請參閱方法。For information about enabling visual styles, see the Application.EnableVisualStyles method.

MouseUpUnsharesRow只會在之前OnMouseUp呼叫。MouseUpUnsharesRow is called just before OnMouseUp. true如果的rowIndex呼叫具有取消共用資料列的效果, 則必須傳回。 OnMouseUpIt must return true if the call to OnMouseUp has the effect of unsharing the row rowIndex. false否則應該會傳回。It should return false otherwise.

如需有關資料列共用的詳細資訊, 請參閱縮放 Windows Forms DataGridView 控制項的最佳做法For more information about row sharing, see Best Practices for Scaling the Windows Forms DataGridView Control.

適用於

另請參閱