[]
        
(Showing Draft Content)

C1.Pdf.PdfTextBlock.-ctor

PdfTextBlock Constructor

PdfTextBlock(string, Font, int)

Initialization text block.

Declaration
public PdfTextBlock(string text, Font font, int fontIndex)
Public Sub New(text As String, font As Font, fontIndex As Integer)
Parameters
Type Name Description
string text

The text of this block.

Font font

The current font of this block.

int fontIndex

The alternative or current font index.

PdfTextBlock(string, Font, int[], int[], int)

Initialization text block.

Declaration
public PdfTextBlock(string text, Font font, int[] widths, int[] kerns, int fontIndex)
Public Sub New(text As String, font As Font, widths As Integer(), kerns As Integer(), fontIndex As Integer)
Parameters
Type Name Description
string text

The text of this block.

Font font

The current font of this block.

int[] widths

The widths of each character(symbol) of the text.

int[] kerns

The width between symbols in the text (count = text length - 1).

int fontIndex

The alternative or current font index.