PDF Creator Pilot documentation |
Download CHM version of this manual. |
|
![]() ![]() ![]() ![]() Collapse AllThis property gets or sets the angle to which the text is rotated.
|
| FLOAT TextAngle { get; set; } |
Value
The angle (in degrees) to which the text is rotated
Remarks
This method applies the text rotation for all future text output operations and does not modify any text already displayed.
Example
Rotating a Text
Delphi
[copy to clipboard]
{ PDF object is supposed to be created }
PDF.SetTextPosition(20, 20);
PDF.TextAngle := -35;
PDF.ShowText('This text is rotated at -35 degrees.');
PDF.TextAngle := 0;
PDF.ShowText(' This text is not rotated. ');
PDF.TextAngle := 35;
PDF.ShowText('And this text is rotated at +35 degrees.');
PDF.SaveToFile('test.pdf', true);
C/C++
[copy to clipboard]
// PDF object is supposed to be created
PDF->SetTextPosition(20, 20);
PDF->TextAngle = -35;
PDF->ShowText("This text is rotated at -35 degrees.");
PDF->TextAngle = 0;
PDF->ShowText(" This text is not rotated. ");
PDF->TextAngle = 35;
PDF->ShowText("And this text is rotated at +35 degrees.");
PDF->SaveToFile("test.pdf", true);
C#
[copy to clipboard]
// PDF object is supposed to be created
PDF.SetTextPosition(20, 20);
PDF.TextAngle = -35;
PDF.ShowText("This text is rotated at -35 degrees.");
PDF.TextAngle = 0;
PDF.ShowText(" This text is not rotated. ");
PDF.TextAngle = 35;
PDF.ShowText("And this text is rotated at +35 degrees.");
PDF.SaveToFile("test.pdf", true);
Visual Basic
[copy to clipboard]
' PDF object is supposed to be created PDF.SetTextPosition 20, 20 PDF.TextAngle = -35 PDF.ShowText "This text is rotated at -35 degrees." PDF.TextAngle = 0 PDF.ShowText " This text is not rotated. " PDF.TextAngle = 35 PDF.ShowText "And this text is rotated at +35 degrees." PDF.SaveToFile "test.pdf", true
See Also
Reference


