Note: This API is now obsolete.
Draws the specified text string starting from the specified
position rotated by the specified angle.
Namespace:
BitMiracle.Docotic.Pdf
Assembly:
BitMiracle.Docotic.Pdf (in BitMiracle.Docotic.Pdf.dll)
Syntax
C#
[ObsoleteAttribute("This method is obsolete and will be removed in the next version of the library. Use DrawString(double, double, string, PdfStringDrawingOptions) method instead.")]
public void DrawString(
float x,
float y,
float angle,
string text,
ICollection<float> charWidths
)
VB
<ObsoleteAttribute("This method is obsolete and will be removed in the next version of the library. Use DrawString(double, double, string, PdfStringDrawingOptions) method instead.")>
Public Sub DrawString (
x As Single,
y As Single,
angle As Single,
text As String,
charWidths As ICollection(Of Single)
)
Parameters
- x
- Type: System.Single
The x-coordinate of the upper-left corner of
the drawn text. - y
- Type: System.Single
The y-coordinate of the upper-left corner of
the drawn text. - angle
- Type: System.Single
The angle, in degrees, to rotate text by. - text
- Type: System.String
The string to draw. - charWidths
- Type: System.Collections.Generic.ICollection<Single>
The char widths.
Remarks
After drawing of each character in the string represented by the
text parameter this method looks up a width in
a collection represented by the
charWidths
parameter and applies extra displacement if needed.
Text gets rotated in counter-clockwise direction.
The string represented by the
text parameter
always spans only one line. Please use
DrawText() if you
want to draw more than one line of text.
See Also