DataGridViewTextBoxCell.PositionEditingControl Metod

Definition

Anger platsen och storleken på redigeringskontrollen som hanteras av en cell i DataGridView-kontrollen.

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)

Parametrar

setLocation
Boolean

true för att få kontrollen placerad enligt de andra argumenten. false för att låta kontrollen placera sig själv.

setSize
Boolean

true för att ange storleken. false så att kontrollen kan storleksanpassa sig själv.

cellBounds
Rectangle

En Rectangle som definierar cellgränsen.

cellClip
Rectangle

Det område som ska användas för att måla redigeringskontrollen.

cellStyle
DataGridViewCellStyle

En DataGridViewCellStyle som representerar cellformatet som redigeras.

singleVerticalBorderAdded
Boolean

trueför att lägga till en lodrät kantlinje i cellen. annars . false

singleHorizontalBorderAdded
Boolean

trueför att lägga till en vågrät kantlinje i cellen. annars . false

isFirstDisplayedColumn
Boolean

trueom värdcellen finns i den första synliga kolumnen; annars . false

isFirstDisplayedRow
Boolean

trueom värdcellen finns på den första synliga raden; annars . false

Gäller för