DataGridViewTextBoxCell.PositionEditingControl Methode

Definitie

Hiermee stelt u de locatie en grootte van het bewerkingsbesturingselement in dat wordt gehost door een cel in het DataGridView-besturingselement.

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)

Parameters

setLocation
Boolean

true het besturingselement te laten plaatsen zoals opgegeven door de andere argumenten; false om het besturingselement toe te staan zichzelf te plaatsen.

setSize
Boolean

true om de grootte op te geven; false om de grootte van het besturingselement zelf toe te staan.

cellBounds
Rectangle

Een Rectangle die de celgrenzen definieert.

cellClip
Rectangle

Het gebied dat wordt gebruikt om het besturingselement te bewerken.

cellStyle
DataGridViewCellStyle

Een DataGridViewCellStyle die de stijl aangeeft van de cel die wordt bewerkt.

singleVerticalBorderAdded
Boolean

true om een verticale rand toe te voegen aan de cel; anders, false.

singleHorizontalBorderAdded
Boolean

true om een horizontale rand aan de cel toe te voegen; anders, false.

isFirstDisplayedColumn
Boolean

true als de hostingcel zich in de eerste zichtbare kolom bevindt; anders, false.

isFirstDisplayedRow
Boolean

true als de hostingcel zich in de eerste zichtbare rij bevindt; anders, false.

Van toepassing op