HiraokaHyperTools.iTextSharp-LGPL  0.2.5
iTextSharp.text.pdf.PdfLine Class Reference

Public Member Functions

IEnumerator GetEnumerator ()
 
bool HasToBeJustified ()
 
void ResetAlignment ()
 
override string ToString ()
 
int GetLineLengthUtf32 ()
 
PdfChunk GetChunk (int idx)
 
float GetWidthCorrected (float charSpacing, float wordSpacing)
 

Properties

int Size [get]
 
ListItem ListItem [set]
 
Chunk ListSymbol [get]
 
float ListIndent [get]
 
bool NewlineSplit [get]
 
int LastStrokeChunk [get]
 
float OriginalWidth [get]
 
float Ascender [get]
 
float Descender [get]
 

Detailed Description

PdfLine defines an array with PdfChunk-objects that fit into 1 line.

Member Function Documentation

◆ GetChunk()

PdfChunk iTextSharp.text.pdf.PdfLine.GetChunk ( int  idx)

Gets a PdfChunk by index.

Parameters
idxthe index
Returns
the PdfChunk or null if beyond the array

◆ GetEnumerator()

IEnumerator iTextSharp.text.pdf.PdfLine.GetEnumerator ( )

Returns an iterator of PdfChunks.

Returns
an Iterator

◆ GetLineLengthUtf32()

int iTextSharp.text.pdf.PdfLine.GetLineLengthUtf32 ( )

◆ GetWidthCorrected()

float iTextSharp.text.pdf.PdfLine.GetWidthCorrected ( float  charSpacing,
float  wordSpacing 
)

◆ HasToBeJustified()

bool iTextSharp.text.pdf.PdfLine.HasToBeJustified ( )

Checks if this line has to be justified.

Returns
true if the alignment equals ALIGN_JUSTIFIED and there is some width left.

◆ ResetAlignment()

void iTextSharp.text.pdf.PdfLine.ResetAlignment ( )

Resets the alignment of this line.

The alignment of the last line of for instance a Paragraph that has to be justified, has to be reset to ALIGN_LEFT.

◆ ToString()

override string iTextSharp.text.pdf.PdfLine.ToString ( )

Get the string representation of what is in this line.

Returns
a string

Property Documentation

◆ Ascender

float iTextSharp.text.pdf.PdfLine.Ascender
get

Gets the maximum size of the ascender for all the fonts used in this line.

Returns
maximum size of all the ascenders used in this line

◆ Descender

float iTextSharp.text.pdf.PdfLine.Descender
get

Gets the biggest descender for all the fonts used in this line. Note that this is a negative number.

Returns
maximum size of all the ascenders used in this line

◆ LastStrokeChunk

int iTextSharp.text.pdf.PdfLine.LastStrokeChunk
get

Gets the index of the last PdfChunk with metric attributes

Returns
the last PdfChunk with metric attributes

◆ ListIndent

float iTextSharp.text.pdf.PdfLine.ListIndent
get

Return the indentation needed to show the listsymbol.

Returns
a value

◆ ListItem

ListItem iTextSharp.text.pdf.PdfLine.ListItem
set

Sets the listsymbol of this line.

This is only necessary for the first line of a ListItem.

Parameters
listItemthe list symbol

◆ ListSymbol

Chunk iTextSharp.text.pdf.PdfLine.ListSymbol
get

Returns the listsymbol of this line.

Returns
a PdfChunk if the line has a listsymbol; null otherwise

◆ NewlineSplit

bool iTextSharp.text.pdf.PdfLine.NewlineSplit
get

Checks if a newline caused the line split.

Returns
true if a newline caused the line split

◆ OriginalWidth

float iTextSharp.text.pdf.PdfLine.OriginalWidth
get

Gets the original width of the line.

Returns
the original width of the line

◆ Size

int iTextSharp.text.pdf.PdfLine.Size
get

Returns the number of chunks in the line.

Returns
a value

The documentation for this class was generated from the following file: