VintaSoft Imaging .NET SDK 14.0: Documentation for .NET developer
Vintasoft.Imaging.Pdf.Drawing Namespace / PdfGraphics Class / DrawString Methods / DrawString(String,IDrawingFont,PdfPen,RectangleF,TextLayoutProperties) Method
Syntax Remarks Requirements SeeAlso
In This Topic
    DrawString(String,IDrawingFont,PdfPen,RectangleF,TextLayoutProperties) Method (PdfGraphics)
    In This Topic
    Draws the specified text string in vector form at the specified rectangle using specified PdfPen and IDrawingFont objects using the formatting attributes specified by TextLayoutProperties.
    Syntax

    Parameters

    s
    String to draw.
    font
    IDrawingFont that defines the string.
    pen
    PdfPen to draw the text.
    rect
    System.Drawing.RectangleF structure that specifies the location of the drawn text.
    textLayoutProperties
    The text layout properties.
    Remarks

    This method does NOT ignore carriage returns and new line characters.

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

    Requirements

    Target Platforms: .NET9; .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

    See Also