SetTableCellAlignment
Layout da página
Descrição
Define o alinhamento vertical e horizontal de uma ou mais células
Sintaxe
Delphi
Function TPDFlib.SetTableCellAlignment(TableID, FirstRow, FirstColumn, LastRow, LastColumn, NewCellAlignment: Integer): Integer;
ActiveX
Function PDFlib::SetTableCellAlignment(TableID As Long, FirstRow As Long, FirstColumn As Long, LastRow As Long, LastColumn As Long, NewCellAlignment As Long) As Long
DLL
int DLSetTableCellAlignment(int InstanceID, int TableID, int FirstRow, int FirstColumn, int LastRow, int LastColumn, int NewCellAlignment);
Parâmetros
| TableID | Um TableID retornado pela função CreateTable |
|---|---|
| FirstRow | O número da primeira linha a definir. A linha do topo é a linha 1. |
| FirstColumn | O número da primeira coluna a definir. A coluna mais à esquerda é a coluna 1. |
| LastRow | O número da última linha a definir |
| LastColumn | O número da última coluna a definir |
| NewCellAlignment | 0 = superior esquerdo 1 = superior central 2 = superior direito 3 = meio esquerdo 4 = meio central 5 = meio direito 6 = inferior esquerdo 7 = inferior central 8 = inferior direito |
Valores retornados
| 1 | O alinhamento foi aplicado às células selecionadas |
|---|---|
| 0 | TableID não é uma tabela válida, a faixa de linhas ou colunas está fora da tabela, ou NewCellAlignment está fora da faixa suportada de 0 a 8 |