'Declaration Public Overloads Sub DrawString( _ ByVal s As String, _ ByVal font As PdfFont, _ ByVal fontSize As Single, _ ByVal brush As PdfBrush, _ ByVal x As Single, _ ByVal y As Single, _ ByVal width As Single, _ ByVal height As Single, _ ByVal textAlignment As PdfContentAlignment, _ ByVal wordWrap As Boolean, _ ByVal lineSpacing As Single _ )
public void DrawString( string s, PdfFont font, float fontSize, PdfBrush brush, float x, float y, float width, float height, PdfContentAlignment textAlignment, bool wordWrap, float lineSpacing )
Parameters
- s
- String to draw.
- font
- Vintasoft.Imaging.Pdf.Tree.Fonts.PdfFont that defines the text format of the string.
- fontSize
- Font size.
- brush
- A PdfBrush that determines the color of the drawn text.
- x
- X coordinate of drawn rectangle.
- y
- Y coordinate of drawn rectangle.
- width
- Width of drawn rectangle.
- height
- Height of drawn rectangle.
- textAlignment
- Text alignment.
- wordWrap
- Enables automatically wraps words to the beginning of the next line when necessary.
- lineSpacing
- Line spacing.