DataGridViewTopLeftHeaderCell.Paint メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
現在の DataGridViewTopLeftHeaderCellを塗りつぶします。
protected:
override void Paint(System::Drawing::Graphics ^ graphics, System::Drawing::Rectangle clipBounds, System::Drawing::Rectangle cellBounds, int rowIndex, System::Windows::Forms::DataGridViewElementStates cellState, System::Object ^ value, System::Object ^ formattedValue, System::String ^ errorText, System::Windows::Forms::DataGridViewCellStyle ^ cellStyle, System::Windows::Forms::DataGridViewAdvancedBorderStyle ^ advancedBorderStyle, System::Windows::Forms::DataGridViewPaintParts paintParts);
protected override void Paint(System.Drawing.Graphics graphics, System.Drawing.Rectangle clipBounds, System.Drawing.Rectangle cellBounds, int rowIndex, System.Windows.Forms.DataGridViewElementStates cellState, object value, object formattedValue, string errorText, System.Windows.Forms.DataGridViewCellStyle cellStyle, System.Windows.Forms.DataGridViewAdvancedBorderStyle advancedBorderStyle, System.Windows.Forms.DataGridViewPaintParts paintParts);
protected override void Paint(System.Drawing.Graphics graphics, System.Drawing.Rectangle clipBounds, System.Drawing.Rectangle cellBounds, int rowIndex, System.Windows.Forms.DataGridViewElementStates cellState, object? value, object? formattedValue, string? errorText, System.Windows.Forms.DataGridViewCellStyle cellStyle, System.Windows.Forms.DataGridViewAdvancedBorderStyle advancedBorderStyle, System.Windows.Forms.DataGridViewPaintParts paintParts);
override this.Paint : System.Drawing.Graphics * System.Drawing.Rectangle * System.Drawing.Rectangle * int * System.Windows.Forms.DataGridViewElementStates * obj * obj * string * System.Windows.Forms.DataGridViewCellStyle * System.Windows.Forms.DataGridViewAdvancedBorderStyle * System.Windows.Forms.DataGridViewPaintParts -> unit
Protected Overrides Sub Paint (graphics As Graphics, clipBounds As Rectangle, cellBounds As Rectangle, rowIndex As Integer, cellState As DataGridViewElementStates, value As Object, formattedValue As Object, errorText As String, cellStyle As DataGridViewCellStyle, advancedBorderStyle As DataGridViewAdvancedBorderStyle, paintParts As DataGridViewPaintParts)
パラメーター
- graphics
- Graphics
Graphicsの描画に使用するDataGridViewCell。
- clipBounds
- Rectangle
再描画する必要があるRectangleの領域を表すDataGridView。
- cellBounds
- Rectangle
描画中のRectangleの境界を含むDataGridViewCell。
- rowIndex
- Int32
描画中のセルの行インデックス。
- cellState
- DataGridViewElementStates
セルの状態を指定する DataGridViewElementStates 値のビットごとの組み合わせ。
- value
- Object
描画中の DataGridViewCell のデータ。
- formattedValue
- Object
描画中の DataGridViewCell の書式設定されたデータ。
- errorText
- String
セルに関連付けられているエラー メッセージ。
- cellStyle
- DataGridViewCellStyle
セルに関する書式設定とスタイル情報を含む DataGridViewCellStyle 。
- advancedBorderStyle
- DataGridViewAdvancedBorderStyle
描画中のセルの罫線スタイルを含む DataGridViewAdvancedBorderStyle 。
- paintParts
- DataGridViewPaintParts
セルのどの部分を描画する必要があるかを指定する DataGridViewPaintParts 値のビットごとの組み合わせ。