TextAngle
IPDFDocument4 :: Page Operations :: Text

See Also Example
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

Reference