DataGridViewCell.MouseLeaveUnsharesRow(Int32) メソッド

定義

マウス ポインターを行から離したときに行の共有を解除するかどうかを示します。

protected:
 virtual bool MouseLeaveUnsharesRow(int rowIndex);
protected virtual bool MouseLeaveUnsharesRow (int rowIndex);
abstract member MouseLeaveUnsharesRow : int -> bool
override this.MouseLeaveUnsharesRow : int -> bool
Protected Overridable Function MouseLeaveUnsharesRow (rowIndex As Integer) As Boolean

パラメーター

rowIndex
Int32

セルの親行のインデックス。

戻り値

行を非共有にする場合は true。それ以外の場合は false。 基本クラスの DataGridViewCell は、常に false を返します。

注釈

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

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

適用対象

こちらもご覧ください