PDF for UWP | ComponentOne
C1.Xaml.Pdf Namespace / C1PdfDocument Class / DrawString Method / DrawString(String,Font,Color,Point,Single) Method
String to draw.
Font object that defines the appearance and size of the drawn text.
The object that defines the color of the drawn text.
The point structure that specifies the location of the drawn text, in points from the top left corner of the page.
The width coefficient of text characters, by default 1.0, for double width 2.0..

In This Topic
    DrawString(String,Font,Color,Point,Single) Method
    In This Topic
    Draws the specified text string at the specified point with the specified Windows.UI.Xaml.Media.Brush, Font objects and specified width coefficient of text characters.
    Syntax
    'Declaration
     
    
    Public Overloads Function DrawString( _
       ByVal text As String, _
       ByVal font As Font, _
       ByVal color As Color, _
       ByVal pt As Point, _
       Optional ByVal widthCoeff As Single _
    ) As Integer
    public int DrawString( 
       string text,
       Font font,
       Color color,
       Point pt,
       float widthCoeff
    )

    Parameters

    text
    String to draw.
    font
    Font object that defines the appearance and size of the drawn text.
    color
    The object that defines the color of the drawn text.
    pt
    The point structure that specifies the location of the drawn text, in points from the top left corner of the page.
    widthCoeff
    The width coefficient of text characters, by default 1.0, for double width 2.0..

    Return Value

    The index of first character that was not printed because it did not fit in the specified rectangle.
    See Also