DataGridViewCell.PositionEditingPanel メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
セルによってホストされる編集パネルの位置とサイズを設定し、編集パネル内の編集コントロールの通常の境界を返します。
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
パラメーター
- cellClip
- Rectangle
編集パネルの描画に使用する領域。
- cellStyle
- DataGridViewCellStyle
編集するセルのスタイルを表す DataGridViewCellStyle 。
- singleVerticalBorderAdded
- Boolean
true セルに垂直罫線を追加する場合。それ以外の場合は false。
- singleHorizontalBorderAdded
- Boolean
true セルに水平罫線を追加する場合。それ以外の場合は false。
- isFirstDisplayedColumn
- Boolean
true セルがコントロールに現在表示されている最初の列にある場合。それ以外の場合は false。
- isFirstDisplayedRow
- Boolean
true セルがコントロールに現在表示されている最初の行にある場合。それ以外の場合は false。
返品
編集パネル内の編集コントロールの通常の境界を表す Rectangle 。
例外
セルが DataGridView コントロールに追加されていません。