Olvasás angol nyelven Szerkesztés

Megosztás a következőn keresztül:


DataGridViewCell.PositionEditingPanel Method

Definition

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);

Parameters

cellBounds
Rectangle

A Rectangle that defines the cell bounds.

cellClip
Rectangle

The area that will be used to paint the editing panel.

cellStyle
DataGridViewCellStyle

A DataGridViewCellStyle that represents the style of the cell being edited.

singleVerticalBorderAdded
Boolean

true to add a vertical border to the cell; otherwise, false.

singleHorizontalBorderAdded
Boolean

true to add a horizontal border to the cell; otherwise, false.

isFirstDisplayedColumn
Boolean

true if the cell is in the first column currently displayed in the control; otherwise, false.

isFirstDisplayedRow
Boolean

true if the cell is in the first row currently displayed in the control; otherwise, false.

Returns

A Rectangle that represents the normal bounds of the editing control within the editing panel.

Exceptions

The cell has not been added to a DataGridView control.

Applies to

Termék Verziók
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9

See also