Print Preview ActiveX Active Users: 24 / Visits Today: 1218
Highest Active Users: 98
Print Preview ActiveX
Home | Profile | Register | Active Topics | Members | Search | FAQ | RSS
Save Password
Forgot your Password?

 All Forums
 Print Preview
 Help file
 TextRotation - Property
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic: TwipsPerPixelX - Property Topic Next Topic: TextWidth - Function  


327 Posts

Posted - 07/24/2005 :  12:46:57  Show Profile
Property TextRotation


This property sets or returns current angle in degrees of rotation for text.


TextRotation [ = lRotAngle As Long ] As Long


Subsequent text is displayed rotated to an angle of lRotAngle degrees.

The default value is 0 ( = Horizontal).

After adding the text CurrentY is updated as : Preview.CurrentY + preview.TextHeight ("displayed text).

Positive angles displays counter clockwise, negative the opposite direction.

Angles greater than 90 degrees and smaller than 270 degrees will have the start location as CurrentX (or as indicated in AddTextAt) but will be displayed in the left direction relative to Xpos. CurrentX will not be adjusted, but keeps it's original value.


To display text rotated to an angle of 45 degrees:

Preview.TextRotation = 45
Preview.AddText = "text line rotated to 45 degrees"

to display the text upside down :

Preview.TextRotation = 180
Preview.AddText = "text line is up side down and there for rotated to 180 degrees"

Come and visit :

Go to Bottom of Page
  Previous Topic: TwipsPerPixelX - Property Topic Next Topic: TextWidth - Function  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Print Preview ActiveX © Mandix Go To Top Of Page
This page was generated in 0.05 seconds. Powered By: Snitz Forums 2000 Version 3.4.02