DataGridViewCell.PositionEditingPanel 方法

定义

设置单元格承载的编辑面板的位置和大小,并返回编辑面板内编辑控件的正常界限。

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

参数

cellBounds
Rectangle

定义单元格界限的 Rectangle

cellClip
Rectangle

将用于绘制编辑面板的区域。

cellStyle
DataGridViewCellStyle

一个 DataGridViewCellStyle,它表示被编辑单元格的样式。

singleVerticalBorderAdded
Boolean

若要向单元格添加竖框线,则为 true;否则为 false

singleHorizontalBorderAdded
Boolean

若要向单元格添加横框线,则为 true;否则为 false

isFirstDisplayedColumn
Boolean

如果该单元格位于控件中当前显示的第一列,则为 true;否则为 false

isFirstDisplayedRow
Boolean

如果该单元格位于控件中当前显示的第一行,则为true;否则为 false

返回

Rectangle

Rectangle,它表示编辑面板内编辑控件的正常界限。

例外

尚未将此单元格添加到 DataGridView 控件中。

适用于

另请参阅