FillTextBlock

Bloques, interacción

Descripción

Personaliza un bloque de texto ajustando el texto dado a su rectángulo con la selección de fuentes actual

Sintaxis

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);

Parámetros

Page, BlockIndexSelector de bloque
TextTexto de sustitución no vacío
OptionsEl bit 1 borra la anotación de bloque tras un relleno con éxito

Valores devueltos

1 cuando el texto se colocó, 0 cuando el bloque falta, no es un bloque de texto o el ajuste falló

Observaciones

Las propiedades de bloque fontname (o font), fontsize (o size), fillcolor (o textcolor/color), alignment (o align/position) y fitmethod se aplican automáticamente cuando están presentes, y la fuente, el tamaño de texto, el color, la alineación y la página seleccionada del llamador se restauran antes de devolver

Véase también

GetBlockCount, AddBlock, GetBlockType, GetBlockRect