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 trueの呼び出しが、OnMouseLeaveで指定された行の共有を解除する効果がある場合は、rowIndexを返す必要があります。 それ以外の場合 false 返す必要があります。

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

適用対象

こちらもご覧ください