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

定義

設定由儲存格裝載之編輯面板的位置和大小,並傳回編輯面板中編輯控制項的標準界限。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

參數

cellBounds
Rectangle Rectangle Rectangle Rectangle

Rectangle,定義儲存格界限。A Rectangle that defines the cell bounds.

cellClip
Rectangle Rectangle Rectangle Rectangle

用來繪製編輯面板的區域。The area that will be used to paint the editing panel.

cellStyle
DataGridViewCellStyle DataGridViewCellStyle DataGridViewCellStyle DataGridViewCellStyle

DataGridViewCellStyle,表示正在編輯之儲存格的樣式。A DataGridViewCellStyle that represents the style of the cell being edited.

singleVerticalBorderAdded
Boolean Boolean Boolean Boolean

true 表示將垂直框線加入儲存格中;否則為 falsetrue to add a vertical border to the cell; otherwise, false.

singleHorizontalBorderAdded
Boolean Boolean Boolean Boolean

true 表示將水平框線加入儲存格中;否則為 falsetrue to add a horizontal border to the cell; otherwise, false.

isFirstDisplayedColumn
Boolean Boolean Boolean Boolean

如果儲存格是在目前顯示於控制項中的第一個資料行中,則為 true,否則為 falsetrue if the cell is in the first column currently displayed in the control; otherwise, false.

isFirstDisplayedRow
Boolean Boolean Boolean Boolean

如果儲存格是在目前顯示於控制項中的第一個資料列中,則為 true,否則為 falsetrue if the cell is in the first row currently displayed in the control; otherwise, false.

傳回

Rectangle,表示編輯面板中編輯控制項的標準界限。A Rectangle that represents the normal bounds of the editing control within the editing panel.

例外狀況

儲存格未加入至 DataGridView 控制項。The cell has not been added to a DataGridView control.

適用於

另請參閱