Components for Developers
© 2000-2008, Two Pilots

PDF Library Download Features Manual Tutorials FAQ Pricing HTML2PDF Add-on History In the Lab

PDF Creator Pilot documentation

Download CHM version of this manual.
Text
Collapse All

This property gets or sets the angle to which the text is rotated.

Syntax

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

PDF Library Download Features Manual Tutorials FAQ Pricing HTML2PDF Add-on History In the Lab

 

 

PDF Library | Virtual Printer | Converters to PDF

Support | Blog | Forum | Contacts

© 2000-2008, Two Pilots