現在の YWDataGridViewCell を描画します。
Namespace: YiaoWang.Windows.FormsAssembly: YiaoWang.Windows.Forms (YiaoWang.Windows.Forms.dll 内) バージョン: 2.11.5.7 (2.11.5.7)
Syntax
C# |
---|
protected override void Paint( Graphics graphics, Rectangle clipBounds, Rectangle cellBounds, int rowIndex, DataGridViewElementStates elementState, Object value, Object formattedValue, string errorText, DataGridViewCellStyle cellStyle, DataGridViewAdvancedBorderStyle advancedBorderStyle, DataGridViewPaintParts paintParts ) |
Visual Basic |
---|
Protected Overrides Sub Paint ( _ graphics As Graphics, _ clipBounds As Rectangle, _ cellBounds As Rectangle, _ rowIndex As Integer, _ elementState As DataGridViewElementStates, _ value As Object, _ formattedValue As Object, _ errorText As String, _ cellStyle As DataGridViewCellStyle, _ advancedBorderStyle As DataGridViewAdvancedBorderStyle, _ paintParts As DataGridViewPaintParts _ ) |
Parameters
- graphics
- Type: System.Drawing..::..Graphics
DataGridViewCell の描画に使用する Graphics。
- clipBounds
- Type: System.Drawing..::..Rectangle
再描画が必要な DataGridView の領域を表す Rectangle。
- cellBounds
- Type: System.Drawing..::..Rectangle
描画される DataGridViewCell の境界が格納された Rectangle。
- rowIndex
- Type: System..::..Int32
描画されるセルの行インデックス。
- elementState
- Type: System.Windows.Forms..::..DataGridViewElementStates
セルの状態を指定する DataGridViewElementStates 値のビットごとの組み合わせ。
- value
- Type: System..::..Object
描画される DataGridViewCell のデータ。
- formattedValue
- Type: System..::..Object
描画される DataGridViewCell の書式指定済みデータ。
- errorText
- Type: System..::..String
セルに関連付けられたエラー メッセージ。
- cellStyle
- Type: System.Windows.Forms..::..DataGridViewCellStyle
セルに関する書式とスタイルの情報が格納された DataGridViewCellStyle。
- advancedBorderStyle
- Type: System.Windows.Forms..::..DataGridViewAdvancedBorderStyle
描画されるセルの境界線スタイルが格納された DataGridViewAdvancedBorderStyle。
- paintParts
- Type: System.Windows.Forms..::..DataGridViewPaintParts
セルのどの部分を描画する必要があるのかを指定する、DataGridViewPaintParts 値のビットごとの組み合わせ。
Remarks
When the button cell is disabled, paint the border, background, and disabled button for the cell.
When The button cell is enabled, so let the base class handle the painting.