activePDF Toolkit 2011 API リファレンス
MemoryFileAllocationSize
テクニカル リファレンス
>
Toolkit オブジェクト
>
Toolkit プロパティ
> MemoryFileAllocationSize
Glossary Item Box
説明:
メモリ上のファイル割り当てサイズを取得および設定します。
戻り値:
値の型
説明 & 設定
Long
ファイル割り当てサイズ
構文:
value =
object
.
MemoryFileAllocationSize
= value
引数:
引数
値の型
説明 & 設定
object
N/A
オブジェクトのインスタンスを設定します。
Value
Long
バイト(デフォルトは 1024)
備考:
この値を高く設定しすぎるとメモリを浪費する可能性があります。低く設定しすぎるとパフォーマンスが下がる可能性があります。
例:
'MemoryFileAllocationSize Example
Set
TK
=
CreateObject(
"APToolkit.Object"
)
r
=
TK.OpenOutputFile(
"MemoryFileAllocationSize.pdf"
)
'Check the current memory size for files
'if less than or equal to 1024 set it to 2048
If
TK.MemoryFileAllocationSize
<=
1024
Then
TK.MemoryFileAllocationSize
=
2048
End If
TK.SetFont
"Helvetica"
,
20
,
0
TK.PrintText
30
,
740
,
"Hello World"
,
0
TK.CloseOutputFile
Set
TK
=
Nothing