DataGridViewButtonCell.MouseLeaveUnsharesRow(Int32) メソッド

定義

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

protected:
 override bool MouseLeaveUnsharesRow(int rowIndex);
protected override bool MouseLeaveUnsharesRow (int rowIndex);
override this.MouseLeaveUnsharesRow : int -> bool
Protected Overrides Function MouseLeaveUnsharesRow (rowIndex As Integer) As Boolean

パラメーター

rowIndex
Int32

現在のセルの行インデックス。セルが行によって所有されていない場合は -1。

戻り値

セルに表示されているボタンが押された状態のとき、true。それ以外の場合は false

注釈

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

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

適用対象

こちらもご覧ください