次の方法で共有


DataGridColumnStyle.Paint メソッド (Graphics, Rectangle, CurrencyManager, Int32, Boolean)

派生クラスでオーバーライドされると、指定した GraphicsRectangleCurrencyManager 、行番号、および配置を使用して DataGridColumnStyle を描画します。

Overloads Protected Friend MustOverride Sub Paint( _
   ByVal g As Graphics, _   ByVal bounds As Rectangle, _   ByVal source As CurrencyManager, _   ByVal rowNum As Integer, _   ByVal alignToRight As Boolean _)
[C#]
protected internal abstract void Paint(Graphicsg,Rectanglebounds,CurrencyManagersource,introwNum,boolalignToRight);
[C++]
protected public: virtual void Paint(Graphics* g,Rectanglebounds,CurrencyManager* source,introwNum,boolalignToRight) = 0;
[JScript]
protected internal abstract function Paint(
   g : Graphics,bounds : Rectangle,source : CurrencyManager,rowNum : int,alignToRight : Boolean);

パラメータ

  • g
    描画が実行される Graphics オブジェクト。
  • bounds
    描画範囲の外接する Rectangle
  • source
    列が属する System.Windows.Forms.DataGrid コントロールの CurrencyManager
  • rowNum
    参照先の、基になるデータにある行の番号。
  • alignToRight
    列の内容を右側に配置するかどうかを示す値。内容を右側に配置する必要がある場合は true 。それ以外の場合は false

必要条件

プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ

参照

DataGridColumnStyle クラス | DataGridColumnStyle メンバ | System.Windows.Forms 名前空間 | DataGridColumnStyle.Paint オーバーロードの一覧