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

Definizione

Imposta la posizione e le dimensioni del pannello di modifica ospitato dalla cella e restituisce i limiti normali del controllo di modifica all'interno del pannello di modifica.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

Parametri

cellBounds
Rectangle

Oggetto Rectangle che definisce i limiti della cella.A Rectangle that defines the cell bounds.

cellClip
Rectangle

Area che verrà usata per disegnare il pannello di modifica.The area that will be used to paint the editing panel.

cellStyle
DataGridViewCellStyle

Oggetto DataGridViewCellStyle che rappresenta lo stile della cella da modificare.A DataGridViewCellStyle that represents the style of the cell being edited.

singleVerticalBorderAdded
Boolean

true per aggiungere un bordo verticale alla cella. In caso contrario, false.true to add a vertical border to the cell; otherwise, false.

singleHorizontalBorderAdded
Boolean

true per aggiungere un bordo orizzontale alla cella. In caso contrario, false.true to add a horizontal border to the cell; otherwise, false.

isFirstDisplayedColumn
Boolean

true se la cella si trova nella prima colonna attualmente visualizzata nel controllo; in caso contrario, false.true if the cell is in the first column currently displayed in the control; otherwise, false.

isFirstDisplayedRow
Boolean

true se la cella si trova nella prima riga attualmente visualizzata nel controllo; in caso contrario, false.true if the cell is in the first row currently displayed in the control; otherwise, false.

Restituisce

Rectangle

Struttura Rectangle che rappresenta i limiti normali del controllo di modifica all'interno del pannello di modifica.A Rectangle that represents the normal bounds of the editing control within the editing panel.

Eccezioni

La cella non è stata aggiunta a un controllo DataGridView.The cell has not been added to a DataGridView control.

Si applica a

Vedi anche