DataGridViewHeaderCell.MouseUpUnsharesRow 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
表示當滑鼠按鈕放開且指標放在該列的某個格子時,該列是否會被取消共享。
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
參數
DataGridViewCellMouseEventArgs A 裡面包含滑鼠位置的資訊。
傳回
true如果放開滑鼠左鍵,則啟用視覺樣式,屬性為 ,屬性則不EnableHeadersVisualStyles啟用;否則, true。DataGridViewnullfalse
備註
關於啟用視覺樣式的資訊,請參閱方法。Application.EnableVisualStyles
MouseUpUnsharesRow 在 之前稱為 OnMouseUp。 如果呼叫 的true結果是將該列 OnMouseUp取消共享,則必須返回rowIndex。 否則應該會恢復 false 正常。
如需有關資料列共用的詳細資訊,請參閱縮放 Windows Forms DataGridView 控制項的最佳做法。