activePDF Toolkit 2011 API リファレンス
HeightPrinted
テクニカル リファレンス > Toolkit オブジェクト > Toolkit プロパティ > HeightPrinted

Glossary Item Box

説明: 出力されたテキストの高さを PDF の表示単位で返します。
戻り値: 値の型 説明 & 設定
Float 出力されたテキストの高さを PDF の表示単位で返します。
構文: value = object.HeightPrinted
引数: 引数 値の型 説明 & 設定
object N/A オブジェクトのインスタンスを設定します。
例:
'HeightPrinted Example
Set TK = CreateObject("APToolkit.Object")

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

strText = "This is multiline text that is printed on the page"
TK.PrintMultilineText "Helvetica", -20, 30, 650, 50, 80, strText, 0, 0

strTextHeight = TK.HeightPrinted
msgbox strTextHeight

TK.SetFont "Helvetica", 20, 0
TK.PrintText 30, 740, "Hello World", 0

strTextHeight = TK.HeightPrinted
msgbox strTextHeight

TK.CloseOutputFile

Set TK = Nothing