thpdf_para.CurrentLine Eigenschap

 

thpdf_para.CurrentLine

thpdf_para

 

Boven  Vorige  Volgende

Geeft de Y-coördinaat van de huidige alinea-regel aan

 

Delphi-syntaxis:

property CurrentLine: Single;

 

C++-syntaxis:

__property Single CurrentLine;

 

Beschrijving

Gebruik de eigenschap CurrentPageNumber om het nummer van de huidige pagina te bepalen

 

Codevoorbeeld


HPDF.CurrentParagraph.Justification := hjLeft;
HPDF.CurrentParagraph.ShowText( 'Text aligned to the left' );
HPDF.CurrentParagraph.NewLine;

HPDF.CurrentParagraph.Justification := hjCenter;
HPDF.CurrentParagraph.ShowText( 'Text aligned in the center' );
HPDF.CurrentParagraph.NewLine;

HPDF.CurrentParagraph.Justification := hjRight;
HPDF.CurrentParagraph.ShowText( 'Text aligned to the right' );
HPDF.CurrentParagraph.NewLine;

HPDF.CurrentParagraph.Justification := hjJustify;
HPDF.CurrentParagraph.ShowText( 'Text is fully justified. This means that spaces between words are adjusted to make the text fill the entire line from margin to margin.' );