DataGridViewCell.MouseUpUnsharesRow(DataGridViewCellMouseEventArgs) メソッド

定義

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

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

パラメーター

e
DataGridViewCellMouseEventArgs

イベント データを含む DataGridViewCellMouseEventArgs

返品

true 行が共有解除される場合は false。 基底 DataGridViewCell クラスは常に falseを返します。

注釈

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

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

適用対象

こちらもご覧ください