DataGridViewTextBoxCell.PositionEditingControl メソッド

定義

DataGridView コントロール内のセルによってホストされる編集コントロールの場所とサイズを設定します。

public:
 override void PositionEditingControl(bool setLocation, bool setSize, System::Drawing::Rectangle cellBounds, System::Drawing::Rectangle cellClip, System::Windows::Forms::DataGridViewCellStyle ^ cellStyle, bool singleVerticalBorderAdded, bool singleHorizontalBorderAdded, bool isFirstDisplayedColumn, bool isFirstDisplayedRow);
public override void PositionEditingControl(bool setLocation, bool setSize, System.Drawing.Rectangle cellBounds, System.Drawing.Rectangle cellClip, System.Windows.Forms.DataGridViewCellStyle cellStyle, bool singleVerticalBorderAdded, bool singleHorizontalBorderAdded, bool isFirstDisplayedColumn, bool isFirstDisplayedRow);
override this.PositionEditingControl : bool * bool * System.Drawing.Rectangle * System.Drawing.Rectangle * System.Windows.Forms.DataGridViewCellStyle * bool * bool * bool * bool -> unit
Public Overrides Sub PositionEditingControl (setLocation As Boolean, setSize As Boolean, cellBounds As Rectangle, cellClip As Rectangle, cellStyle As DataGridViewCellStyle, singleVerticalBorderAdded As Boolean, singleHorizontalBorderAdded As Boolean, isFirstDisplayedColumn As Boolean, isFirstDisplayedRow As Boolean)

パラメーター

setLocation
Boolean

true 他の引数で指定されたとおりにコントロールを配置する場合。コントロールが自身を配置できるようにする false します。

setSize
Boolean

true サイズを指定するには、コントロールがそれ自体のサイズを変更できるようにする false

cellBounds
Rectangle

セルの境界を定義する Rectangle

cellClip
Rectangle

編集コントロールの描画に使用する領域。

cellStyle
DataGridViewCellStyle

編集するセルのスタイルを表す DataGridViewCellStyle

singleVerticalBorderAdded
Boolean

true セルに垂直罫線を追加する場合。それ以外の場合は false

singleHorizontalBorderAdded
Boolean

true セルに水平罫線を追加する場合。それ以外の場合は false

isFirstDisplayedColumn
Boolean

true ホスティングセルが最初に表示される列にある場合。それ以外の場合は false

isFirstDisplayedRow
Boolean

true ホスティングセルが最初に表示される行にある場合。それ以外の場合は false

適用対象