FillTextBlockA
區塊、互動
描述
結尾的 A 表示 ANSI(char)DLL 進入點;ActiveX/COM 介面只提供 Unicode 形式。行為與 FillTextBlock 完全相同,字串參數依目前 SetAnsiMode 的字碼頁解讀
以目前的字型選擇把給定文字依框放進矩形,完成文字區塊個人化
語法
Delphi
Function DLFillTextBlockA(InstanceID, Page, BlockIndex: Integer; Text: PAnsiChar; Options: Integer): Integer;
DLL
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 在存在時自動套用,傳回前會還原呼叫端的字型、字級、顏色、對齊與所選頁面