DataGridViewCellPaintingEventArgs コンストラクタとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > DataGridViewCellPaintingEventArgs コンストラクタの意味・解説 

DataGridViewCellPaintingEventArgs コンストラクタ

メモ : このコンストラクタは、.NET Framework version 2.0新しく追加されたものです。

DataGridViewCellPaintingEventArgs クラス新しインスタンス初期化します。

名前空間: System.Windows.Forms
アセンブリ: System.Windows.Forms (system.windows.forms.dll 内)
構文構文

Public Sub New ( _
    dataGridView As DataGridView, _
    graphics As Graphics, _
    clipBounds As Rectangle, _
    cellBounds As Rectangle, _
    rowIndex As Integer, _
    columnIndex As Integer, _
    cellState As DataGridViewElementStates, _
    value As Object, _
    formattedValue As Object, _
    errorText As String, _
    cellStyle As DataGridViewCellStyle, _
    advancedBorderStyle As DataGridViewAdvancedBorderStyle, _
    paintParts As DataGridViewPaintParts _
)
Dim dataGridView As DataGridView
Dim graphics As Graphics
Dim clipBounds As Rectangle
Dim cellBounds As Rectangle
Dim rowIndex As Integer
Dim columnIndex As Integer
Dim cellState As DataGridViewElementStates
Dim value As Object
Dim formattedValue As Object
Dim errorText As String
Dim cellStyle As DataGridViewCellStyle
Dim advancedBorderStyle As DataGridViewAdvancedBorderStyle
Dim paintParts As DataGridViewPaintParts

Dim instance As New DataGridViewCellPaintingEventArgs(dataGridView,
 graphics, clipBounds, cellBounds, rowIndex, columnIndex, cellState, value, formattedValue,
 errorText, cellStyle, advancedBorderStyle, paintParts)
public DataGridViewCellPaintingEventArgs (
    DataGridView dataGridView,
    Graphics graphics,
    Rectangle clipBounds,
    Rectangle cellBounds,
    int rowIndex,
    int columnIndex,
    DataGridViewElementStates cellState,
    Object value,
    Object formattedValue,
    string errorText,
    DataGridViewCellStyle cellStyle,
    DataGridViewAdvancedBorderStyle advancedBorderStyle,
    DataGridViewPaintParts paintParts
)
public:
DataGridViewCellPaintingEventArgs (
    DataGridView^ dataGridView, 
    Graphics^ graphics, 
    Rectangle clipBounds, 
    Rectangle cellBounds, 
    int rowIndex, 
    int columnIndex, 
    DataGridViewElementStates cellState, 
    Object^ value, 
    Object^ formattedValue, 
    String^ errorText, 
    DataGridViewCellStyle^ cellStyle, 
    DataGridViewAdvancedBorderStyle^ advancedBorderStyle, 
    DataGridViewPaintParts paintParts
)
public DataGridViewCellPaintingEventArgs (
    DataGridView dataGridView, 
    Graphics graphics, 
    Rectangle clipBounds, 
    Rectangle cellBounds, 
    int rowIndex, 
    int columnIndex, 
    DataGridViewElementStates cellState, 
    Object value, 
    Object formattedValue, 
    String errorText, 
    DataGridViewCellStyle cellStyle, 
    DataGridViewAdvancedBorderStyle advancedBorderStyle, 
    DataGridViewPaintParts paintParts
)
public function DataGridViewCellPaintingEventArgs
 (
    dataGridView : DataGridView, 
    graphics : Graphics, 
    clipBounds : Rectangle, 
    cellBounds : Rectangle, 
    rowIndex : int, 
    columnIndex : int, 
    cellState : DataGridViewElementStates, 
    value : Object, 
    formattedValue : Object, 
    errorText : String, 
    cellStyle : DataGridViewCellStyle, 
    advancedBorderStyle : DataGridViewAdvancedBorderStyle, 
    paintParts : DataGridViewPaintParts
)

パラメータ

dataGridView

描画されるセル含んだ DataGridView。

graphics

DataGridViewCell の描画使用する Graphics

clipBounds

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

cellBounds

描画される DataGridViewCell境界格納されRectangle

rowIndex

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

columnIndex

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

cellState

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

value

描画される DataGridViewCellデータ

formattedValue

描画される DataGridViewCell書式設定したデータ

errorText

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

cellStyle

セルに関する書式スタイル情報格納された DataGridViewCellStyle。

advancedBorderStyle

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

paintParts

描画する部分指定する DataGridViewPaintParts 値のビットごとの組み合わせ

例外例外
例外種類条件

ArgumentNullException

dataGridViewnull 参照 (Visual Basic では Nothing) です。

または

graphicsnull 参照 (Visual Basic では Nothing) です。

または

cellStylenull 参照 (Visual Basic では Nothing) です。

ArgumentException

paintParts が、DataGridViewPaintParts 値の有効なビットごとの組み合わせではありません。

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
DataGridViewCellPaintingEventArgs クラス
DataGridViewCellPaintingEventArgs メンバ
System.Windows.Forms 名前空間
Graphics
Rectangle
DataGridViewCell クラス
DataGridView クラス
DataGridViewElementStates
DataGridViewAdvancedBorderStyle クラス



英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

「DataGridViewCellPaintingEventArgs コンストラクタ」の関連用語

DataGridViewCellPaintingEventArgs コンストラクタのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



DataGridViewCellPaintingEventArgs コンストラクタのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2025 Microsoft.All rights reserved.

©2025 GRAS Group, Inc.RSS