DataGridViewTextBoxCell::PositionEditingControl Method (Boolean, Boolean, Rectangle, Rectangle, DataGridViewCellStyle^, Boolean, Boolean, Boolean, Boolean)
.NET Framework (current version)
Sets the location and size of the editing control hosted by a cell in the DataGridView control.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
public: virtual void PositionEditingControl( bool setLocation, bool setSize, Rectangle cellBounds, Rectangle cellClip, DataGridViewCellStyle^ cellStyle, bool singleVerticalBorderAdded, bool singleHorizontalBorderAdded, bool isFirstDisplayedColumn, bool isFirstDisplayedRow ) override
Parameters
- setLocation
-
Type:
System::Boolean
true to have the control placed as specified by the other arguments; false to allow the control to place itself.
- setSize
-
Type:
System::Boolean
true to specify the size; false to allow the control to size itself.
- 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 control.
- 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 hosting cell is in the first visible column; otherwise, false.
- isFirstDisplayedRow
-
Type:
System::Boolean
true if the hosting cell is in the first visible row; otherwise, false.
.NET Framework
Available since 2.0
Available since 2.0
Show: