SetTextRotation

説明

PrintText に適用するすべてのテキストに使用する回転度数を設定します。

戻り値の型

なし

構文

object.SetTextRotation RotationAngle

SetTextRotation メソッドは次のパラメータから構成されています。

パラメータ

値の型

説明

Object

 

Toolkit オブジェクト

RotationAngle

Short

反時計方向の回転度数 (時計方向の場合は 負数で設定します)

Set TK = CreateObject("APToolkit.Object")

r = TK.OpenOutputFile("SetTextRotation.pdf")

 

'Set the rotaion of the printed text

TK.SetTextRotation -45

 

TK.SetFont "Helvetica", 20, 0

TK.PrintText 30, 740, "Hello World", 0

 

TK.CloseOutputFile

Set TK = Nothing