DataGridViewCell.PositionEditingPanel 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 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
Parameters
- 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
See also
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기