DataGridViewButtonCell.MouseDownUnsharesRow メソッド

定義

マウス ポインターを行のセルに置いた状態でマウス ボタンを押したままにしたときに、その行の非共有にするかどうかを示します。

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

パラメーター

e
DataGridViewCellMouseEventArgs

イベント データを格納している DataGridViewCellMouseEventArgs

戻り値

ユーザーがマウスの左ボタンを押した場合は true。それ以外の場合は false

注釈

メソッドは MouseDownUnsharesRow 、 メソッドの直前に OnMouseDown 呼び出されます。 のOnMouseDown呼び出しが行 rowIndexの共有を解除する効果がある場合は、 を返すtrue必要があります。 それ以外の場合は を返す false 必要があります。

行の共有の詳細については、「Windows フォーム DataGridView コントロールを拡張するための推奨される手順」を参照してください。

適用対象

こちらもご覧ください