DataGridViewCell.EnterUnsharesRow(Int32, Boolean) メソッド
定義
フォーカスがセルに移動したときに、親の行を非共有にするかどうかを示します。Indicates whether the parent row will be unshared when the focus moves to the cell.
protected:
virtual bool EnterUnsharesRow(int rowIndex, bool throughMouseClick);
protected virtual bool EnterUnsharesRow (int rowIndex, bool throughMouseClick);
abstract member EnterUnsharesRow : int * bool -> bool
override this.EnterUnsharesRow : int * bool -> bool
Protected Overridable Function EnterUnsharesRow (rowIndex As Integer, throughMouseClick As Boolean) As Boolean
パラメーター
- rowIndex
- Int32
セルの親行のインデックス。The index of the cell's parent row.
- throughMouseClick
- Boolean
ユーザー操作によってフォーカスがセルに移動した場合は true
。プログラム操作によってフォーカスがセルに移動した場合は false
。true
if a user action moved focus to the cell; false
if a programmatic operation moved focus to the cell.
戻り値
行を非共有にする場合は true
。それ以外の場合は false
。true
if the row will be unshared; otherwise, false
. 基本クラスの DataGridViewCell は、常に false
を返します。The base DataGridViewCell class always returns false
.
注釈
EnterUnsharesRow メソッドは、OnEnter メソッドの直前に呼び出されます。The EnterUnsharesRow method is called just before the OnEnter method. OnEnter への呼び出しに、セルを含む行の true
を解除する効果がある場合は、を返す必要があります。It must return true
if the call to OnEnter has the effect of unsharing the row containing the cell. それ以外の場合は false
を返します。Otherwise, it should return false
.
行の共有の詳細については、「 Windows フォーム DataGridView コントロールのスケーリングに関するベストプラクティス」を参照してください。For more information about row sharing, see Best Practices for Scaling the Windows Forms DataGridView Control.