DataGridViewTextBoxCell.PositionEditingControl Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets the location and size of the editing control hosted by a cell in the DataGridView control.
public:
override void PositionEditingControl(bool setLocation, bool setSize, System::Drawing::Rectangle cellBounds, System::Drawing::Rectangle cellClip, System::Windows::Forms::DataGridViewCellStyle ^ cellStyle, bool singleVerticalBorderAdded, bool singleHorizontalBorderAdded, bool isFirstDisplayedColumn, bool isFirstDisplayedRow);
public override void PositionEditingControl (bool setLocation, bool setSize, System.Drawing.Rectangle cellBounds, System.Drawing.Rectangle cellClip, System.Windows.Forms.DataGridViewCellStyle cellStyle, bool singleVerticalBorderAdded, bool singleHorizontalBorderAdded, bool isFirstDisplayedColumn, bool isFirstDisplayedRow);
override this.PositionEditingControl : bool * bool * System.Drawing.Rectangle * System.Drawing.Rectangle * System.Windows.Forms.DataGridViewCellStyle * bool * bool * bool * bool -> unit
Public Overrides Sub PositionEditingControl (setLocation As Boolean, setSize As Boolean, cellBounds As Rectangle, cellClip As Rectangle, cellStyle As DataGridViewCellStyle, singleVerticalBorderAdded As Boolean, singleHorizontalBorderAdded As Boolean, isFirstDisplayedColumn As Boolean, isFirstDisplayedRow As Boolean)
Parameters
- setLocation
- Boolean
true
to have the control placed as specified by the other arguments; false
to allow the control to place itself.
- setSize
- Boolean
true
to specify the size; false
to allow the control to size itself.
- cellClip
- Rectangle
The area that will be used to paint the editing control.
- 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 hosting cell is in the first visible column; otherwise, false
.
- isFirstDisplayedRow
- Boolean
true
if the hosting cell is in the first visible row; otherwise, false
.
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應