DataGridViewCell.PositionEditingPanel(Rectangle, Rectangle, DataGridViewCellStyle, Boolean, Boolean, Boolean, Boolean) DataGridViewCell.PositionEditingPanel(Rectangle, Rectangle, DataGridViewCellStyle, Boolean, Boolean, Boolean, Boolean) DataGridViewCell.PositionEditingPanel(Rectangle, Rectangle, DataGridViewCellStyle, Boolean, Boolean, Boolean, Boolean) DataGridViewCell.PositionEditingPanel(Rectangle, Rectangle, DataGridViewCellStyle, Boolean, Boolean, Boolean, Boolean) Method

Definición

Establece la ubicación y tamaño del panel de edición que hospeda la celda y devuelve los límites normales del control de edición dentro del panel de edición.Sets the location and size of the editing panel hosted by the cell, and returns the normal bounds of the editing control within the editing panel.

public:
 virtual System::Drawing::Rectangle PositionEditingPanel(System::Drawing::Rectangle cellBounds, System::Drawing::Rectangle cellClip, System::Windows::Forms::DataGridViewCellStyle ^ cellStyle, bool singleVerticalBorderAdded, bool singleHorizontalBorderAdded, bool isFirstDisplayedColumn, bool isFirstDisplayedRow);
public virtual System.Drawing.Rectangle PositionEditingPanel (System.Drawing.Rectangle cellBounds, System.Drawing.Rectangle cellClip, System.Windows.Forms.DataGridViewCellStyle cellStyle, bool singleVerticalBorderAdded, bool singleHorizontalBorderAdded, bool isFirstDisplayedColumn, bool isFirstDisplayedRow);
abstract member PositionEditingPanel : System.Drawing.Rectangle * System.Drawing.Rectangle * System.Windows.Forms.DataGridViewCellStyle * bool * bool * bool * bool -> System.Drawing.Rectangle
override this.PositionEditingPanel : System.Drawing.Rectangle * System.Drawing.Rectangle * System.Windows.Forms.DataGridViewCellStyle * bool * bool * bool * bool -> System.Drawing.Rectangle
Public Overridable Function PositionEditingPanel (cellBounds As Rectangle, cellClip As Rectangle, cellStyle As DataGridViewCellStyle, singleVerticalBorderAdded As Boolean, singleHorizontalBorderAdded As Boolean, isFirstDisplayedColumn As Boolean, isFirstDisplayedRow As Boolean) As Rectangle

Parámetros

cellBounds
Rectangle Rectangle Rectangle Rectangle

Rectangle que define los límites de la celda.A Rectangle that defines the cell bounds.

cellClip
Rectangle Rectangle Rectangle Rectangle

Área que se va a utilizar para dibujar el panel de edición.The area that will be used to paint the editing panel.

cellStyle
DataGridViewCellStyle DataGridViewCellStyle DataGridViewCellStyle DataGridViewCellStyle

DataGridViewCellStyle que representa el estilo de la celda que se está editando.A DataGridViewCellStyle that represents the style of the cell being edited.

singleVerticalBorderAdded
Boolean Boolean Boolean Boolean

true para agregar un borde vertical a la celda; de lo contrario, false.true to add a vertical border to the cell; otherwise, false.

singleHorizontalBorderAdded
Boolean Boolean Boolean Boolean

true para agregar un borde horizontal a la celda; de lo contrario, false.true to add a horizontal border to the cell; otherwise, false.

isFirstDisplayedColumn
Boolean Boolean Boolean Boolean

true si la celda está actualmente en la primera columna que muestra el control; de lo contrario, false.true if the cell is in the first column currently displayed in the control; otherwise, false.

isFirstDisplayedRow
Boolean Boolean Boolean Boolean

true si la celda está actualmente en la primera fila que muestra el control; de lo contrario, false.true if the cell is in the first row currently displayed in the control; otherwise, false.

Devoluciones

Rectangle que representa los límites normales del control de edición dentro del panel de edición.A Rectangle that represents the normal bounds of the editing control within the editing panel.

Excepciones

La celda no se ha agregado a un control DataGridView.The cell has not been added to a DataGridView control.

Se aplica a

Consulte también: