VintaSoft Imaging .NET SDK v8.7
Vintasoft.Imaging.Pdf.Drawing Namespace / PdfGraphics Class / DrawString Method / DrawString(String,Font,PdfBrush,PointF) Method
String to draw.
System.Drawing.Font that should be used for drawing a string.
PdfBrush that determines the color and texture of the drawn text.
System.Drawing.PointF structure that specifies the text location.



In This Topic
    DrawString(String,Font,PdfBrush,PointF) Method
    In This Topic
    Draws the specified text string in vector form at the specified location using the specified PdfBrush and System.Drawing.Font objects.
    Syntax
    'Declaration
     
    Public Overloads Sub DrawString( _
       ByVal s As String, _
       ByVal font As Font, _
       ByVal brush As PdfBrush, _
       ByVal location As PointF _
    ) 
    public void DrawString( 
       string s,
       Font font,
       PdfBrush brush,
       PointF location
    )
    public: void DrawString( 
       string* s,
       Font* font,
       PdfBrush* brush,
       PointF location
    ) 
    public:
    void DrawString( 
       String^ s,
       Font^ font,
       PdfBrush^ brush,
       PointF location
    ) 

    Parameters

    s
    String to draw.
    font
    System.Drawing.Font that should be used for drawing a string.
    brush
    PdfBrush that determines the color and texture of the drawn text.
    location
    System.Drawing.PointF structure that specifies the text location.
    Remarks
    This method ignores carriage returns and new line characters.

    Use overloaded method that takes rectangle, instead of point that specifies location, if carriage returns and new line characters should NOT be ignored.
    Requirements

    Target Platforms: Windows 10, Windows 8, Windows 7, Windows Vista, Windows XP, Windows Server 2012, Windows Server 2008, Windows Server 2003

    See Also