PositionEditingPanel Method
TOC
Collapse the table of content
Expand the table of content

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

 

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.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

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

Parameters

cellBounds
Type: System.Drawing.Rectangle

A Rectangle that defines the cell bounds.

cellClip
Type: System.Drawing.Rectangle

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

cellStyle
Type: System.Windows.Forms.DataGridViewCellStyle

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

singleVerticalBorderAdded
Type: System.Boolean

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

singleHorizontalBorderAdded
Type: System.Boolean

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

isFirstDisplayedColumn
Type: System.Boolean

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

isFirstDisplayedRow
Type: System.Boolean

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

Return Value

Type: System.Drawing.Rectangle

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

Exception Condition
InvalidOperationException

The cell has not been added to a DataGridView control.

.NET Framework
Available since 2.0
Return to top
Show:
© 2016 Microsoft