次の方法で共有


DataGridTextBoxColumn.PaintText メソッド (Graphics, Rectangle, String, Boolean)

指定した位置に、テキストと四角形を指定した配置で描画します。

Overloads Protected Sub PaintText( _
   ByVal g As Graphics, _   ByVal bounds As Rectangle, _   ByVal text As String, _   ByVal alignToRight As Boolean _)
[C#]
protected void PaintText(Graphicsg,Rectanglebounds,stringtext,boolalignToRight);
[C++]
protected: void PaintText(Graphics* g,Rectanglebounds,String* text,boolalignToRight);
[JScript]
protected function PaintText(
   g : Graphics,bounds : Rectangle,text : String,alignToRight : Boolean);

パラメータ

  • g
    文字列の描画に使用する Graphics オブジェクト。
  • bounds
    四角形の境界データを格納している Rectangle
  • text
    画面に描画する文字列。
  • alignToRight
    テキストを右揃えにするかどうかを指定する値。

解説

PaintText メソッドは、画面に値を描画する前に、 Format プロパティで設定された DataFormats.Format オブジェクトを使用して、その値の書式を指定します。

Paint メソッドは PaintText メソッドを呼び出します。

必要条件

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

参照

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