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.
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.
Target Platforms: .NET 11; .NET 10; .NET 9; .NET 8; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5