Language

DataGridTextBoxColumn.PaintText メソッド

定義

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

オーバーロード

名前 説明
PaintText(Graphics, Rectangle, String, Boolean)

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

PaintText(Graphics, Rectangle, String, Brush, Brush, Boolean)

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

PaintText(Graphics, Rectangle, String, Boolean)

ソース:
DataGridTextBoxColumn.cs
ソース:
DataGridTextBoxColumn.cs

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

protected:
 void PaintText(System::Drawing::Graphics ^ g, System::Drawing::Rectangle bounds, System::String ^ text, bool alignToRight);
protected void PaintText(System.Drawing.Graphics g, System.Drawing.Rectangle bounds, string text, bool alignToRight);
member this.PaintText : System.Drawing.Graphics * System.Drawing.Rectangle * string * bool -> unit
Protected Sub PaintText (g As Graphics, bounds As Rectangle, text As String, alignToRight As Boolean)

パラメーター

g
Graphics

文字列の描画に使用する Graphics オブジェクト。

bounds
Rectangle

四角形の境界データを格納する Rectangle 。

text
String

画面に描画する文字列。

alignToRight
Boolean

テキストが右揃えかどうかを示す値。

注釈

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

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

こちらもご覧ください

適用対象

PaintText(Graphics, Rectangle, String, Brush, Brush, Boolean)

ソース:
DataGridTextBoxColumn.cs
ソース:
DataGridTextBoxColumn.cs

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

protected:
 void PaintText(System::Drawing::Graphics ^ g, System::Drawing::Rectangle textBounds, System::String ^ text, System::Drawing::Brush ^ backBrush, System::Drawing::Brush ^ foreBrush, bool alignToRight);
protected void PaintText(System.Drawing.Graphics g, System.Drawing.Rectangle textBounds, string text, System.Drawing.Brush backBrush, System.Drawing.Brush foreBrush, bool alignToRight);
member this.PaintText : System.Drawing.Graphics * System.Drawing.Rectangle * string * System.Drawing.Brush * System.Drawing.Brush * bool -> unit
Protected Sub PaintText (g As Graphics, textBounds As Rectangle, text As String, backBrush As Brush, foreBrush As Brush, alignToRight As Boolean)

パラメーター

g
Graphics

文字列の描画に使用する Graphics オブジェクト。

textBounds
Rectangle

四角形の境界データを格納する Rectangle 。

text
String

画面に描画する文字列。

backBrush
Brush

四角形の背景色を決定する Brush 。

foreBrush
Brush

四角形の前景色を決定する Brush 。

alignToRight
Boolean

テキストが右揃えかどうかを示す値。

注釈

PaintText メソッドは、Format プロパティを使用して、画面に描画する前に値の書式を設定します。

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

こちらもご覧ください

適用対象