DataGridViewTopLeftHeaderCell.Paint(Graphics, Rectangle, Rectangle, Int32, DataGridViewElementStates, Object, Object, String, DataGridViewCellStyle, DataGridViewAdvancedBorderStyle, DataGridViewPaintParts) DataGridViewTopLeftHeaderCell.Paint(Graphics, Rectangle, Rectangle, Int32, DataGridViewElementStates, Object, Object, String, DataGridViewCellStyle, DataGridViewAdvancedBorderStyle, DataGridViewPaintParts) DataGridViewTopLeftHeaderCell.Paint(Graphics, Rectangle, Rectangle, Int32, DataGridViewElementStates, Object, Object, String, DataGridViewCellStyle, DataGridViewAdvancedBorderStyle, DataGridViewPaintParts) Method

定義

現在の DataGridViewTopLeftHeaderCell を描画します。Paints the current 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);
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 Graphics Graphics

Graphics の描画に使用する DataGridViewCellThe Graphics used to paint the DataGridViewCell.

clipBounds
Rectangle Rectangle Rectangle

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

cellBounds
Rectangle Rectangle Rectangle

描画される Rectangle の境界が格納された DataGridViewCellA Rectangle that contains the bounds of the DataGridViewCell that is being painted.

rowIndex
Int32 Int32 Int32

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

cellState
DataGridViewElementStates DataGridViewElementStates DataGridViewElementStates

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

value
Object Object Object

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

formattedValue
Object Object Object

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

errorText
String String String

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

cellStyle
DataGridViewCellStyle DataGridViewCellStyle DataGridViewCellStyle

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

advancedBorderStyle
DataGridViewAdvancedBorderStyle DataGridViewAdvancedBorderStyle DataGridViewAdvancedBorderStyle

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

paintParts
DataGridViewPaintParts DataGridViewPaintParts DataGridViewPaintParts

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

適用対象