DataGridViewImageCell.Paint(Graphics, Rectangle, Rectangle, Int32, DataGridViewElementStates, Object, Object, String, DataGridViewCellStyle, DataGridViewAdvancedBorderStyle, DataGridViewPaintParts) メソッド

定義

現在の DataGridViewImageCell を描画します。Paints the current DataGridViewImageCell.

protected:
 override void Paint(System::Drawing::Graphics ^ graphics, System::Drawing::Rectangle clipBounds, System::Drawing::Rectangle cellBounds, int rowIndex, System::Windows::Forms::DataGridViewElementStates elementState, 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 elementState, 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

パラメーター

graphics
Graphics

セルの描画に使用する GraphicsThe Graphics used to paint the cell.

clipBounds
Rectangle

再描画が必要な Rectangle の領域を表す DataGridViewA Rectangle that represents the area of the DataGridView that needs to be repainted.

cellBounds
Rectangle

描画されるセルの境界が格納された RectangleA Rectangle that contains the bounds of the cell that is being painted.

rowIndex
Int32

描画されるセルの行インデックス。The row index of the cell that is being painted.

elementState
DataGridViewElementStates

セルの状態を指定する DataGridViewElementStates 値のビットごとの組み合わせ。A bitwise combination of DataGridViewElementStates values that specifies the state of the cell.

value
Object

描画されるセルのデータ。The data of the cell that is being painted.

formattedValue
Object

描画されるセルの書式指定済みデータ。The formatted data of the cell that is being painted.

errorText
String

セルに関連付けられたエラー メッセージ。An error message that is associated with the cell.

cellStyle
DataGridViewCellStyle

セルに関する書式とスタイルの情報が格納された DataGridViewCellStyleA DataGridViewCellStyle that contains formatting and style information about the cell.

advancedBorderStyle
DataGridViewAdvancedBorderStyle

描画されるセルの境界線スタイルが格納された DataGridViewAdvancedBorderStyleA DataGridViewAdvancedBorderStyle that contains border styles for the cell that is being painted.

paintParts
DataGridViewPaintParts

セルのどの部分を描画する必要があるのかを指定する、DataGridViewPaintParts 値のビットごとの組み合わせ。A bitwise combination of the DataGridViewPaintParts values that specifies which parts of the cell need to be painted.

適用対象