DataGridViewTextBoxCell.Paint メソッド

定義

現在の DataGridViewCell を描画します。

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);
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

DataGridViewCell の描画に使用する Graphics

clipBounds
Rectangle

再描画が必要な DataGridView の領域を表す Rectangle

cellBounds
Rectangle

描画される DataGridViewCell の境界が格納された Rectangle

rowIndex
Int32

描画されるセルの行インデックス。

cellState
DataGridViewElementStates

セルの状態を指定する DataGridViewElementStates 値のビットごとの組み合わせ。

value
Object

描画される DataGridViewCell のデータ。

formattedValue
Object

描画される DataGridViewCell の書式指定済みデータ。

errorText
String

セルに関連付けられたエラー メッセージ。

cellStyle
DataGridViewCellStyle

セルに関する書式とスタイルの情報を格納する DataGridViewCellStyle

advancedBorderStyle
DataGridViewAdvancedBorderStyle

描画されるセルの境界線スタイルが格納された DataGridViewAdvancedBorderStyle

paintParts
DataGridViewPaintParts

セルのどの部分を描画する必要があるのかを指定する、DataGridViewPaintParts 値のビットごとの組み合わせ。

適用対象

こちらもご覧ください