Bahasa

DataGridViewTextBoxCell.PositionEditingControl Metode

Definisi

Mengatur lokasi dan ukuran kontrol pengeditan yang dihosting oleh sel di kontrol 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)

Parameter

setLocation
Boolean

true agar kontrol ditempatkan sebagaimana ditentukan oleh argumen lain; false untuk memungkinkan kontrol menempatkan dirinya sendiri.

setSize
Boolean

true untuk menentukan ukuran; false untuk memungkinkan kontrol untuk mengukur dirinya sendiri.

cellBounds
Rectangle

Rectangle Yang menentukan batas sel.

cellClip
Rectangle

Area yang akan digunakan untuk mengecat kontrol pengeditan.

cellStyle
DataGridViewCellStyle

DataGridViewCellStyle Yang mewakili gaya sel yang sedang diedit.

singleVerticalBorderAdded
Boolean

true untuk menambahkan batas vertikal ke sel; jika tidak, false.

singleHorizontalBorderAdded
Boolean

true untuk menambahkan batas horizontal ke sel; jika tidak, false.

isFirstDisplayedColumn
Boolean

true jika sel hosting berada di kolom pertama yang terlihat; jika tidak, false.

isFirstDisplayedRow
Boolean

true jika sel hosting berada di baris pertama yang terlihat; jika tidak, false.

Berlaku untuk