Search Results for

    Show / Hide Table of Contents

    Constructor TextElement

    TextElement(String, PointF, Single)

    Initializes a new instance of the TextElement class used for drawing text on the screen.

    Declaration
    public TextElement(string caption, PointF position, float scale)
    Parameters
    Type Name Description
    System.String caption

    The TextElement to draw.

    System.Drawing.PointF position

    Set the Position on screen where to draw the TextElement.

    System.Single scale

    Sets a Scale used to increase of decrease the size of the TextElement, for no scaling use 1.0f.

    TextElement(String, PointF, Single, Color)

    Initializes a new instance of the TextElement class used for drawing text on the screen.

    Declaration
    public TextElement(string caption, PointF position, float scale, Color color)
    Parameters
    Type Name Description
    System.String caption

    The TextElement to draw.

    System.Drawing.PointF position

    Set the Position on screen where to draw the TextElement.

    System.Single scale

    Sets a Scale used to increase of decrease the size of the TextElement, for no scaling use 1.0f.

    System.Drawing.Color color

    Set the Color used to draw the TextElement.

    TextElement(String, PointF, Single, Color, Font)

    Initializes a new instance of the TextElement class used for drawing text on the screen.

    Declaration
    public TextElement(string caption, PointF position, float scale, Color color, Font font)
    Parameters
    Type Name Description
    System.String caption

    The TextElement to draw.

    System.Drawing.PointF position

    Set the Position on screen where to draw the TextElement.

    System.Single scale

    Sets a Scale used to increase of decrease the size of the TextElement, for no scaling use 1.0f.

    System.Drawing.Color color

    Set the Color used to draw the TextElement.

    Font font

    Sets the Font used when drawing the text.

    TextElement(String, PointF, Single, Color, Font, Alignment)

    Initializes a new instance of the TextElement class used for drawing text on the screen.

    Declaration
    public TextElement(string caption, PointF position, float scale, Color color, Font font, Alignment alignment)
    Parameters
    Type Name Description
    System.String caption

    The TextElement to draw.

    System.Drawing.PointF position

    Set the Position on screen where to draw the TextElement.

    System.Single scale

    Sets a Scale used to increase of decrease the size of the TextElement, for no scaling use 1.0f.

    System.Drawing.Color color

    Set the Color used to draw the TextElement.

    Font font

    Sets the Font used when drawing the text.

    Alignment alignment

    Sets the Alignment used when drawing the text, Left,Center or Right.

    TextElement(String, PointF, Single, Color, Font, Alignment, Boolean, Boolean)

    Initializes a new instance of the TextElement class used for drawing text on the screen.

    Declaration
    public TextElement(string caption, PointF position, float scale, Color color, Font font, Alignment alignment, bool shadow, bool outline)
    Parameters
    Type Name Description
    System.String caption

    The TextElement to draw.

    System.Drawing.PointF position

    Set the Position on screen where to draw the TextElement.

    System.Single scale

    Sets a Scale used to increase of decrease the size of the TextElement, for no scaling use 1.0f.

    System.Drawing.Color color

    Set the Color used to draw the TextElement.

    Font font

    Sets the Font used when drawing the text.

    Alignment alignment

    Sets the Alignment used when drawing the text, Left,Center or Right.

    System.Boolean shadow

    Sets whether or not to draw the TextElement with a Shadow effect.

    System.Boolean outline

    Sets whether or not to draw the TextElement with an Outline around the letters.

    TextElement(String, PointF, Single, Color, Font, Alignment, Boolean, Boolean, Single)

    Initializes a new instance of the TextElement class used for drawing text on the screen.

    Declaration
    public TextElement(string caption, PointF position, float scale, Color color, Font font, Alignment alignment, bool shadow, bool outline, float wrapWidth)
    Parameters
    Type Name Description
    System.String caption

    The TextElement to draw.

    System.Drawing.PointF position

    Set the Position on screen where to draw the TextElement.

    System.Single scale

    Sets a Scale used to increase of decrease the size of the TextElement, for no scaling use 1.0f.

    System.Drawing.Color color

    Set the Color used to draw the TextElement.

    Font font

    Sets the Font used when drawing the text.

    Alignment alignment

    Sets the Alignment used when drawing the text, Left,Center or Right.

    System.Boolean shadow

    Sets whether or not to draw the TextElement with a Shadow effect.

    System.Boolean outline

    Sets whether or not to draw the TextElement with an Outline around the letters.

    System.Single wrapWidth

    Sets how many horizontal pixel to draw before wrapping the TextElement on the next line down.

    ☀
    ☾
    Back to top Copyright (C) 2015 crosire - zlib
    Generated with DocFX