FillTextBlock

ブロック、インタラクション

説明

現在のフォント選択でテキストを矩形にフィットさせて、テキストブロックをパーソナライズします

構文

Delphi

Function FillTextBlock(Page, BlockIndex: Integer; Const Text: WideString;
  Options: Integer): Integer;

ActiveX

Function PDFlib::FillTextBlock(Page As Long, BlockIndex As Long, Text As String, Options As Long) As Long

DLL

int DLFillTextBlock(int InstanceID, int Page, int BlockIndex, const wchar_t* Text, int Options);
int DLFillTextBlockA(int InstanceID, int Page, int BlockIndex, const char* Text, int Options);

パラメータ

Page, BlockIndexブロックの選択
Text空ではない置き換えテキスト
Optionsビット 1 で、入力成功後にブロック注釈を削除します

戻り値

テキストを配置できたら 1。ブロックが存在しない、テキストブロックでない、フィットに失敗した場合は 0

備考

ブロックプロパティの fontname(または font)、fontsize(または size)、fillcolor(または textcolor/color)、alignment(または align/position)、fitmethod は、存在すれば自動適用されます。戻る前に、呼び出し元のフォント、テキストサイズ、色、整列、選択ページが復元されます

関連項目

GetBlockCount, AddBlock, GetBlockType, GetBlockRect