ComponentOne Excel for .NET
C1.Excel Assembly / C1.Util Namespace / GraphicsRendering Class / DrawString Method / DrawString(String,RectangleF,TextAlignType,TextAlignType) Method
String to draw.
Rectangle for text drawing in pixcels.
Horizontal text aligment.
Vertical text aligment.

In This Topic
    DrawString(String,RectangleF,TextAlignType,TextAlignType) Method
    In This Topic
    Draw string at specified area with word wrap.
    Syntax
    'Declaration
     
    Public Overloads Sub DrawString( _
       ByVal s As System.String, _
       ByVal rc As System.Drawing.RectangleF, _
       Optional ByVal horz As TextAlignType, _
       Optional ByVal vert As TextAlignType _
    ) 
    public void DrawString( 
       System.string s,
       System.Drawing.RectangleF rc,
       TextAlignType horz,
       TextAlignType vert
    )

    Parameters

    s
    String to draw.
    rc
    Rectangle for text drawing in pixcels.
    horz
    Horizontal text aligment.
    vert
    Vertical text aligment.
    See Also