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,表示編輯面板中編輯控制項的標準界限。

例外狀況

儲存格未加入至 DataGridView 控制項。

適用於

另請參閱