言語

DataGridViewButtonCell.MouseUpUnsharesRow メソッド

定義

ポインターが行のセル上にある間にマウス ボタンが離されたときに、行の共有を解除するかどうかを示します。

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

パラメーター

e
DataGridViewCellMouseEventArgs

イベント データを含む DataGridViewCellMouseEventArgs

返品

true マウスの左ボタンが離された場合。それ以外の場合は false

注釈

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

行共有の詳細については、「 Windows フォーム DataGridView コントロールのスケーリングのベスト プラクティス」を参照してください。

適用対象

こちらもご覧ください