Graphics.DrawString メソッドとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > Graphics.DrawString メソッドの意味・解説 

Graphics.DrawString メソッド (String, Font, Brush, RectangleF)

指定した Brush オブジェクトFont オブジェクトで、指定した文字列指定した四角形内に描画ます。

名前空間: System.Drawing
アセンブリ: System.Drawing (system.drawing.dll 内)
構文構文

Public Sub DrawString ( _
    s As String, _
    font As Font, _
    brush As Brush, _
    layoutRectangle As RectangleF _
)
Dim instance As Graphics
Dim s As String
Dim font As Font
Dim brush As Brush
Dim layoutRectangle As RectangleF

instance.DrawString(s, font, brush, layoutRectangle)
public void DrawString (
    string s,
    Font font,
    Brush brush,
    RectangleF layoutRectangle
)
public:
void DrawString (
    String^ s, 
    Font^ font, 
    Brush^ brush, 
    RectangleF layoutRectangle
)
public void DrawString (
    String s, 
    Font font, 
    Brush brush, 
    RectangleF layoutRectangle
)
public function DrawString (
    s : String, 
    font : Font, 
    brush : Brush, 
    layoutRectangle : RectangleF
)

パラメータ

s

描画する文字列

font

文字列テキスト形式定義する Font

brush

描画するテキストの色とテクスチャ決定する Brush

layoutRectangle

描画するテキスト位置指定する RectangleF 構造体

例外例外
例外種類条件

ArgumentNullException

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

または

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

解説解説
使用例使用例

次の例は、Windows フォームでの使用意図してデザインされており、Paint イベント ハンドラパラメータである PaintEventArgse が必要です。このコード次のアクション実行します

Public Sub DrawStringRectangleF(ByVal
 e As PaintEventArgs)

    ' Create string to draw.
    Dim drawString As [String] = "Sample
 Text"

    ' Create font and brush.
    Dim drawFont As New
 Font("Arial", 16)
    Dim drawBrush As New
 SolidBrush(Color.Black)

    ' Create rectangle for drawing.
    Dim x As Single = 150.0F
    Dim y As Single = 150.0F
    Dim width As Single
 = 200.0F
    Dim height As Single
 = 50.0F
    Dim drawRect As New
 RectangleF(x, y, width, height)

    ' Draw rectangle to screen.
    Dim blackPen As New
 Pen(Color.Black)
    e.Graphics.DrawRectangle(blackPen, x, y, width, height)

    ' Draw string to screen.
    e.Graphics.DrawString(drawString, drawFont, drawBrush, drawRect)
End Sub
public void DrawStringRectangleF(PaintEventArgs
 e)
{
             
    // Create string to draw.
    String drawString = "Sample Text";
             
    // Create font and brush.
    Font drawFont = new Font("Arial", 16);
    SolidBrush drawBrush = new SolidBrush(Color.Black);
             
    // Create rectangle for drawing.
    float x = 150.0F;
    float y = 150.0F;
    float width = 200.0F;
    float height = 50.0F;
    RectangleF drawRect = new RectangleF(x, y, width, height);
             
    // Draw rectangle to screen.
    Pen blackPen = new Pen(Color.Black);
    e.Graphics.DrawRectangle(blackPen, x, y, width, height);
             
    // Draw string to screen.
    e.Graphics.DrawString(drawString, drawFont, drawBrush, drawRect);
}
public:
   void DrawStringRectangleF( PaintEventArgs^ e )
   {
      // Create string to draw.
      String^ drawString = "Sample Text";

      // Create font and brush.
      System::Drawing::Font^ drawFont = gcnew System::Drawing::Font( "Arial",16
 );
      SolidBrush^ drawBrush = gcnew SolidBrush( Color::Black );

      // Create rectangle for drawing.
      float x = 150.0F;
      float y = 150.0F;
      float width = 200.0F;
      float height = 50.0F;
      RectangleF drawRect = RectangleF(x,y,width,height);

      // Draw rectangle to screen.
      Pen^ blackPen = gcnew Pen( Color::Black );
      e->Graphics->DrawRectangle( blackPen, x, y, width, height );

      // Draw string to screen.
      e->Graphics->DrawString( drawString, drawFont, drawBrush, drawRect );
   }
public void DrawStringRectangleF(PaintEventArgs
 e) 
{
    // Create string to draw.
    String drawString = "Sample Text";

    // Create font and brush.
    Font drawFont =  new Font("Arial", 16);
    SolidBrush drawBrush =  new SolidBrush(Color.get_Black());

    // Create rectangle for drawing.
    float x = 150;
    float y = 150;
    float width = 200;
    float height = 50;
    RectangleF drawRect =  new RectangleF(x, y, width, height);

    // Draw rectangle to screen.
    Pen blackPen =  new Pen(Color.get_Black());
    e.get_Graphics().DrawRectangle(blackPen, x, y, width, height);

    // Draw string to screen.
    e.get_Graphics().DrawString(drawString, drawFont, drawBrush, drawRect);
} //DrawStringRectangleF
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照

Graphics.DrawString メソッド (String, Font, Brush, RectangleF, StringFormat)

指定した StringFormat書式属性使用して指定した Brush オブジェクトおよび Font オブジェクトで、指定した四角形指定した文字列描画ます。

名前空間: System.Drawing
アセンブリ: System.Drawing (system.drawing.dll 内)
構文構文

Public Sub DrawString ( _
    s As String, _
    font As Font, _
    brush As Brush, _
    layoutRectangle As RectangleF, _
    format As StringFormat _
)
Dim instance As Graphics
Dim s As String
Dim font As Font
Dim brush As Brush
Dim layoutRectangle As RectangleF
Dim format As StringFormat

instance.DrawString(s, font, brush, layoutRectangle, format)
public void DrawString (
    string s,
    Font font,
    Brush brush,
    RectangleF layoutRectangle,
    StringFormat format
)
public:
void DrawString (
    String^ s, 
    Font^ font, 
    Brush^ brush, 
    RectangleF layoutRectangle, 
    StringFormat^ format
)
public void DrawString (
    String s, 
    Font font, 
    Brush brush, 
    RectangleF layoutRectangle, 
    StringFormat format
)
public function DrawString (
    s : String, 
    font : Font, 
    brush : Brush, 
    layoutRectangle : RectangleF, 
    format : StringFormat
)

パラメータ

s

描画する文字列

font

文字列テキスト形式定義する Font

brush

描画するテキストの色とテクスチャ決定する Brush

layoutRectangle

描画するテキスト位置指定する RectangleF 構造体

format

描画するテキスト適用する行間配置などの書式属性指定する StringFormat。

例外例外
例外種類条件

ArgumentNullException

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

または

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

解説解説
使用例使用例

次の例は、Windows フォームでの使用意図してデザインされており、Paint イベント ハンドラパラメータである PaintEventArgse が必要です。このコード次のアクション実行します

Public Sub DrawStringRectangleFFormat(ByVal
 e As PaintEventArgs)

    ' Create string to draw.
    Dim drawString As [String] = "Sample
 Text"

    ' Create font and brush.
    Dim drawFont As New
 Font("Arial", 16)
    Dim drawBrush As New
 SolidBrush(Color.Black)

    ' Create rectangle for drawing.
    Dim x As Single = 150.0F
    Dim y As Single = 150.0F
    Dim width As Single
 = 200.0F
    Dim height As Single
 = 50.0F
    Dim drawRect As New
 RectangleF(x, y, width, height)

    ' Draw rectangle to screen.
    Dim blackPen As New
 Pen(Color.Black)
    e.Graphics.DrawRectangle(blackPen, x, y, width, height)

    ' Set format of string.
    Dim drawFormat As New
 StringFormat
    drawFormat.Alignment = StringAlignment.Center

    ' Draw string to screen.
    e.Graphics.DrawString(drawString, drawFont, drawBrush, _
    drawRect, drawFormat)
End Sub
public void DrawStringRectangleFFormat(PaintEventArgs
 e)
{
             
    // Create string to draw.
    String drawString = "Sample Text";
             
    // Create font and brush.
    Font drawFont = new Font("Arial", 16);
    SolidBrush drawBrush = new SolidBrush(Color.Black);
             
    // Create rectangle for drawing.
    float x = 150.0F;
    float y = 150.0F;
    float width = 200.0F;
    float height = 50.0F;
    RectangleF drawRect = new RectangleF(x, y, width, height);
             
    // Draw rectangle to screen.
    Pen blackPen = new Pen(Color.Black);
    e.Graphics.DrawRectangle(blackPen, x, y, width, height);
             
    // Set format of string.
    StringFormat drawFormat = new StringFormat();
    drawFormat.Alignment = StringAlignment.Center;
             
    // Draw string to screen.
    e.Graphics.DrawString(drawString, drawFont, drawBrush, drawRect, drawFormat);
}
public:
   void DrawStringRectangleFFormat( PaintEventArgs^ e )
   {
      // Create string to draw.
      String^ drawString = "Sample Text";

      // Create font and brush.
      System::Drawing::Font^ drawFont = gcnew System::Drawing::Font( "Arial",16
 );
      SolidBrush^ drawBrush = gcnew SolidBrush( Color::Black );

      // Create rectangle for drawing.
      float x = 150.0F;
      float y = 150.0F;
      float width = 200.0F;
      float height = 50.0F;
      RectangleF drawRect = RectangleF(x,y,width,height);

      // Draw rectangle to screen.
      Pen^ blackPen = gcnew Pen( Color::Black );
      e->Graphics->DrawRectangle( blackPen, x, y, width, height );

      // Set format of string.
      StringFormat^ drawFormat = gcnew StringFormat;
      drawFormat->Alignment = StringAlignment::Center;

      // Draw string to screen.
      e->Graphics->DrawString( drawString, drawFont, drawBrush, drawRect, drawFormat
 );
   }
public void DrawStringRectangleFFormat(PaintEventArgs
 e) 
{

    // Create string to draw.
    String drawString = "Sample Text";

    // Create font and brush.
    Font drawFont =  new Font("Arial", 16);
    SolidBrush drawBrush =  new SolidBrush(Color.get_Black());

    // Create rectangle for drawing.
    float x = 150;
    float y = 150;
    float width = 200;
    float height = 50;
    RectangleF drawRect =  new RectangleF(x, y, width, height);

    // Draw rectangle to screen.
    Pen blackPen =  new Pen(Color.get_Black());
    e.get_Graphics().DrawRectangle(blackPen, x, y, width, height);

    // Set format of string.
    StringFormat drawFormat =  new StringFormat();
    drawFormat.set_Alignment(StringAlignment.Center);

    // Draw string to screen.
    e.get_Graphics().DrawString(drawString, drawFont, drawBrush, drawRect, 
        drawFormat);
} //DrawStringRectangleFFormat
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照

Graphics.DrawString メソッド (String, Font, Brush, Single, Single)

指定した位置に、指定した Brush オブジェクトFont オブジェクトで、指定した文字列描画ます。

名前空間: System.Drawing
アセンブリ: System.Drawing (system.drawing.dll 内)
構文構文

例外例外
例外種類条件

ArgumentNullException

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

または

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

使用例使用例

次の例は、Windows フォームでの使用意図してデザインされており、Paint イベント ハンドラパラメータである PaintEventArgse が必要です。このコード次のアクション実行します

Public Sub DrawStringFloat(ByVal
 e As PaintEventArgs)

    ' Create string to draw.
    Dim drawString As [String] = "Sample
 Text"

    ' Create font and brush.
    Dim drawFont As New
 Font("Arial", 16)
    Dim drawBrush As New
 SolidBrush(Color.Black)

    ' Create point for upper-left corner of drawing.
    Dim x As Single = 150.0F
    Dim y As Single = 150.0F

    ' Draw string to screen.
    e.Graphics.DrawString(drawString, drawFont, drawBrush, x, y)
End Sub
public void DrawStringFloat(PaintEventArgs
 e)
{
             
    // Create string to draw.
    String drawString = "Sample Text";
             
    // Create font and brush.
    Font drawFont = new Font("Arial", 16);
    SolidBrush drawBrush = new SolidBrush(Color.Black);
             
    // Create point for upper-left corner of drawing.
    float x = 150.0F;
    float y = 150.0F;
             
    // Draw string to screen.
    e.Graphics.DrawString(drawString, drawFont, drawBrush, x, y);
}
public:
   void DrawStringFloat( PaintEventArgs^ e )
   {
      // Create string to draw.
      String^ drawString = "Sample Text";

      // Create font and brush.
      System::Drawing::Font^ drawFont = gcnew System::Drawing::Font( "Arial",16
 );
      SolidBrush^ drawBrush = gcnew SolidBrush( Color::Black );

      // Create point for upper-left corner of drawing.
      float x = 150.0F;
      float y = 150.0F;

      // Draw string to screen.
      e->Graphics->DrawString( drawString, drawFont, drawBrush, x, y );
   }
public void DrawStringFloat(PaintEventArgs
 e) 
{
    // Create string to draw.
    String drawString = "Sample Text";

    // Create font and brush.
    Font drawFont =  new Font("Arial", 16);
    SolidBrush drawBrush =  new SolidBrush(Color.get_Black());

    // Create point for upper-left corner of drawing.
    float x = 150;
    float y = 150;

    // Draw string to screen.
    e.get_Graphics().DrawString(drawString, drawFont, drawBrush, x, y);
} //DrawStringFloat
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照

Graphics.DrawString メソッド (String, Font, Brush, PointF)

指定した位置に、指定した Brush オブジェクトFont オブジェクトで、指定した文字列描画ます。

名前空間: System.Drawing
アセンブリ: System.Drawing (system.drawing.dll 内)
構文構文

例外例外
例外種類条件

ArgumentNullException

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

または

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

使用例使用例

次の例は、Windows フォームでの使用意図してデザインされており、Paint イベント ハンドラパラメータである PaintEventArgse が必要です。このコード次のアクション実行します

Public Sub DrawStringPointF(ByVal
 e As PaintEventArgs)

    ' Create string to draw.
    Dim drawString As [String] = "Sample
 Text"

    ' Create font and brush.
    Dim drawFont As New
 Font("Arial", 16)
    Dim drawBrush As New
 SolidBrush(Color.Black)

    ' Create point for upper-left corner of drawing.
    Dim drawPoint As New
 PointF(150.0F, 150.0F)

    ' Draw string to screen.
    e.Graphics.DrawString(drawString, drawFont, drawBrush, drawPoint)
End Sub
public void DrawStringPointF(PaintEventArgs
 e)
{
             
    // Create string to draw.
    String drawString = "Sample Text";
             
    // Create font and brush.
    Font drawFont = new Font("Arial", 16);
    SolidBrush drawBrush = new SolidBrush(Color.Black);
             
    // Create point for upper-left corner of drawing.
    PointF drawPoint = new PointF(150.0F, 150.0F);
             
    // Draw string to screen.
    e.Graphics.DrawString(drawString, drawFont, drawBrush, drawPoint);
}
public:
   void DrawStringPointF( PaintEventArgs^ e )
   {
      // Create string to draw.
      String^ drawString = "Sample Text";

      // Create font and brush.
      System::Drawing::Font^ drawFont = gcnew System::Drawing::Font( "Arial",16
 );
      SolidBrush^ drawBrush = gcnew SolidBrush( Color::Black );

      // Create point for upper-left corner of drawing.
      PointF drawPoint = PointF(150.0F,150.0F);

      // Draw string to screen.
      e->Graphics->DrawString( drawString, drawFont, drawBrush, drawPoint );
   }
public void DrawStringPointF(PaintEventArgs
 e) 
{
    // Create string to draw.
    String drawString = "Sample Text";

    // Create font and brush.
    Font drawFont =  new Font("Arial", 16);
    SolidBrush drawBrush =  new SolidBrush(Color.get_Black());

    // Create point for upper-left corner of drawing.
    PointF drawPoint =  new PointF(150, 150);

    // Draw string to screen.
    e.get_Graphics().DrawString(drawString, drawFont, drawBrush, 
        drawPoint);
} //DrawStringPointF
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照

Graphics.DrawString メソッド (String, Font, Brush, Single, Single, StringFormat)

指定した StringFormat書式属性使用して指定した Brush オブジェクトおよび Font オブジェクトで、指定した位置指定した文字列描画ます。

名前空間: System.Drawing
アセンブリ: System.Drawing (system.drawing.dll 内)
構文構文

例外例外
例外種類条件

ArgumentNullException

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

または

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

使用例使用例

次の例は、Windows フォームでの使用意図してデザインされており、Paint イベント ハンドラパラメータである PaintEventArgse が必要です。このコード次のアクション実行します

Public Sub DrawStringFloatFormat(ByVal
 e As PaintEventArgs)

    ' Create string to draw.
    Dim drawString As [String] = "Sample
 Text"

    ' Create font and brush.
    Dim drawFont As New
 Font("Arial", 16)
    Dim drawBrush As New
 SolidBrush(Color.Black)

    ' Create point for upper-left corner of drawing.
    Dim x As Single = 150.0F
    Dim y As Single = 50.0F

    ' Set format of string.
    Dim drawFormat As New
 StringFormat
    drawFormat.FormatFlags = StringFormatFlags.DirectionVertical

    ' Draw string to screen.
    e.Graphics.DrawString(drawString, drawFont, drawBrush, _
    x, y, drawFormat)
End Sub
public void DrawStringFloatFormat(PaintEventArgs
 e)
{
             
    // Create string to draw.
    String drawString = "Sample Text";
             
    // Create font and brush.
    Font drawFont = new Font("Arial", 16);
    SolidBrush drawBrush = new SolidBrush(Color.Black);
             
    // Create point for upper-left corner of drawing.
    float x = 150.0F;
    float y =  50.0F;
             
    // Set format of string.
    StringFormat drawFormat = new StringFormat();
    drawFormat.FormatFlags = StringFormatFlags.DirectionVertical;
             
    // Draw string to screen.
    e.Graphics.DrawString(drawString, drawFont, drawBrush, x, y, drawFormat);
}
public:
   void DrawStringFloatFormat( PaintEventArgs^ e )
   {
      // Create string to draw.
      String^ drawString = "Sample Text";

      // Create font and brush.
      System::Drawing::Font^ drawFont = gcnew System::Drawing::Font( "Arial",16
 );
      SolidBrush^ drawBrush = gcnew SolidBrush( Color::Black );

      // Create point for upper-left corner of drawing.
      float x = 150.0F;
      float y = 50.0F;

      // Set format of string.
      StringFormat^ drawFormat = gcnew StringFormat;
      drawFormat->FormatFlags = StringFormatFlags::DirectionVertical;

      // Draw string to screen.
      e->Graphics->DrawString( drawString, drawFont, drawBrush, x, y, drawFormat
 );
   }
public void DrawStringFloatFormat(PaintEventArgs
 e) 
{
    // Create string to draw.
    String drawString = "Sample Text";

    // Create font and brush.
    Font drawFont =  new Font("Arial", 16);
    SolidBrush drawBrush =  new SolidBrush(Color.get_Black());

    // Create point for upper-left corner of drawing.
    float x = 150;
    float y = 50;

    // Set format of string.
    StringFormat drawFormat =  new StringFormat();
    drawFormat.set_FormatFlags(StringFormatFlags.DirectionVertical);

    // Draw string to screen.
    e.get_Graphics().DrawString(drawString, drawFont, drawBrush, x, y, 
        drawFormat);
} //DrawStringFloatFormat
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照

Graphics.DrawString メソッド (String, Font, Brush, PointF, StringFormat)

指定した StringFormat書式属性使用して指定した Brush オブジェクトおよび Font オブジェクトで、指定した位置指定した文字列描画ます。

名前空間: System.Drawing
アセンブリ: System.Drawing (system.drawing.dll 内)
構文構文

例外例外
例外種類条件

ArgumentNullException

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

または

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

使用例使用例

次の例は、Windows フォームでの使用意図してデザインされており、Paint イベント ハンドラパラメータである PaintEventArgse が必要です。このコード次のアクション実行します

Public Sub DrawStringPointFFormat(ByVal
 e As PaintEventArgs)

    ' Create string to draw.
    Dim drawString As [String] = "Sample
 Text"

    ' Create font and brush.
    Dim drawFont As New
 Font("Arial", 16)
    Dim drawBrush As New
 SolidBrush(Color.Black)

    ' Create point for upper-left corner of drawing.
    Dim drawPoint As New
 PointF(150.0F, 50.0F)

    ' Set format of string.
    Dim drawFormat As New
 StringFormat
    drawFormat.FormatFlags = StringFormatFlags.DirectionVertical

    ' Draw string to screen.
    e.Graphics.DrawString(drawString, drawFont, drawBrush, _
    drawPoint, drawFormat)
End Sub
public void DrawStringPointFFormat(PaintEventArgs
 e)
{
             
    // Create string to draw.
    String drawString = "Sample Text";
             
    // Create font and brush.
    Font drawFont = new Font("Arial", 16);
    SolidBrush drawBrush = new SolidBrush(Color.Black);
             
    // Create point for upper-left corner of drawing.
    PointF drawPoint = new PointF(150.0F, 50.0F);
             
    // Set format of string.
    StringFormat drawFormat = new StringFormat();
    drawFormat.FormatFlags = StringFormatFlags.DirectionVertical;
             
    // Draw string to screen.
    e.Graphics.DrawString(drawString, drawFont, drawBrush, drawPoint, drawFormat);
}
public:
   void DrawStringPointFFormat( PaintEventArgs^ e )
   {
      // Create string to draw.
      String^ drawString = "Sample Text";

      // Create font and brush.
      System::Drawing::Font^ drawFont = gcnew System::Drawing::Font( "Arial",16
 );
      SolidBrush^ drawBrush = gcnew SolidBrush( Color::Black );

      // Create point for upper-left corner of drawing.
      PointF drawPoint = PointF(150.0F,50.0F);

      // Set format of string.
      StringFormat^ drawFormat = gcnew StringFormat;
      drawFormat->FormatFlags = StringFormatFlags::DirectionVertical;

      // Draw string to screen.
      e->Graphics->DrawString( drawString, drawFont, drawBrush, drawPoint,
 drawFormat );
   }
public void DrawStringPointFFormat(PaintEventArgs
 e) 
{
    // Create string to draw.
    String drawString = "Sample Text";

    // Create font and brush.
    Font drawFont =  new Font("Arial", 16);
    SolidBrush drawBrush =  new SolidBrush(Color.get_Black());

    // Create point for upper-left corner of drawing.
    PointF drawPoint =  new PointF(150, 50);

    // Set format of string.
    StringFormat drawFormat =  new StringFormat();
    drawFormat.set_FormatFlags(StringFormatFlags.DirectionVertical);

    // Draw string to screen.
    e.get_Graphics().DrawString(drawString, drawFont, drawBrush, drawPoint,
        drawFormat);
} //DrawStringPointFFormat
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照

Graphics.DrawString メソッド

指定した位置に、指定した Brush オブジェクトFont オブジェクトで、指定した文字列描画ます。
オーバーロードの一覧オーバーロードの一覧

名前 説明
Graphics.DrawString (String, Font, Brush, PointF) 指定した位置に、指定した Brush オブジェクトFont オブジェクトで、指定した文字列描画ます。
Graphics.DrawString (String, Font, Brush, RectangleF) 指定した Brush オブジェクトFont オブジェクトで、指定した文字列指定した四角形内に描画ます。

.NET Compact Framework によってサポートされています。

Graphics.DrawString (String, Font, Brush, PointF, StringFormat) 指定した StringFormat の書式属性使用して指定した Brush オブジェクトおよび Font オブジェクトで、指定した位置指定した文字列描画ます。
Graphics.DrawString (String, Font, Brush, RectangleF, StringFormat) 指定した StringFormat書式属性使用して指定した Brush オブジェクトおよび Font オブジェクトで、指定した四角形指定した文字列描画ます。

.NET Compact Framework によってサポートされています。

Graphics.DrawString (String, Font, Brush, Single, Single) 指定した位置に、指定した Brush オブジェクトFont オブジェクトで、指定した文字列描画ます。

.NET Compact Framework によってサポートされています。

Graphics.DrawString (String, Font, Brush, Single, Single, StringFormat) 指定した StringFormat書式属性使用して指定した Brush オブジェクトおよび Font オブジェクトで、指定した位置指定した文字列描画ます。

.NET Compact Framework によってサポートされています。

参照参照

関連項目

Graphics クラス
Graphics メンバ
System.Drawing 名前空間
TextRenderer.DrawText

その他の技術情報

フォントテキスト使用



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

辞書ショートカット

すべての辞書の索引

「Graphics.DrawString メソッド」の関連用語

Graphics.DrawString メソッドのお隣キーワード
検索ランキング

   

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



Graphics.DrawString メソッドのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2024 GRAS Group, Inc.RSS