• Overview
  • How it works
  • Documentation
  • Blog
  • Forum
Search Results for

    Show / Hide Table of Contents

    DrawText Method

    DrawText(String, Font, Brush, Point)

    Draws the specified text string at the specified location with the specified Brush and Font objects.

    Declaration
    public void DrawText(string text, Font font, Brush brush, Point origin)
    Parameters
    Type Name Description
    String text

    String to draw.

    Font font

    Font that defines the text format of the string.

    Brush brush

    Brush that determines the color and texture of the drawn text.

    Point origin

    Point structure that specifies the upper-left corner of the drawn text.

    DrawText(String, Font, Brush, Point, TextFormat)

    Draws the specified text string at the specified location with the specified Brush and Font objects.

    Declaration
    public void DrawText(string text, Font font, Brush brush, Point origin, TextFormat format)
    Parameters
    Type Name Description
    String text

    String to draw.

    Font font

    Font that defines the text format of the string.

    Brush brush

    Brush that determines the color and texture of the drawn text.

    Point origin

    Point structure that specifies the upper-left corner of the drawn text.

    TextFormat format

    TextFormat that specifies formatting attributes, such as alignment and trimming, that are applied to the drawn text.

    DrawText(String, Font, Brush, Rect)

    Draws the specified text string at the specified location with the specified Brush and Font objects.

    Declaration
    public void DrawText(string text, Font font, Brush brush, Rect bounds)
    Parameters
    Type Name Description
    String text

    String to draw.

    Font font

    Font that defines the text format of the string.

    Brush brush

    Brush that determines the color and texture of the drawn text.

    Rect bounds

    Rect structure that specifies the bounds of the drawn text.

    DrawText(String, Font, Brush, Rect, TextFormat)

    Draws the specified text string at the specified location with the specified Brush and Font objects.

    Declaration
    public void DrawText(string text, Font font, Brush brush, Rect bounds, TextFormat format)
    Parameters
    Type Name Description
    String text

    String to draw.

    Font font

    Font that defines the text format of the string.

    Brush brush

    Brush that determines the color and texture of the drawn text.

    Rect bounds

    Rect structure that specifies the bounds of the drawn text.

    TextFormat format

    TextFormat that specifies formatting attributes, such as alignment and trimming, that are applied to the drawn text.

    In This Article
    Back to top Documentation Licensing Info Copyright AlterNET Software