Table of Contents

Class Row

Namespace
iTextSharp.text
Assembly
iTextSharp.LGPLv2.Core.dll

A Row is part of a Table and contains some Cells.

public class Row : IElement
Inheritance
Row
Implements
Inherited Members

Remarks

All Rows are constructed by a Table-object. You don't have to construct any Row yourself. In fact you can't construct a Row outside the package. Since a Cell can span several rows and/or columns a row can contain reserved space without any content.

Fields

Cell

membervariables

public static int Cell

Field Value

int

Cells

This is the array of Objects (Cell or Table).

protected object[] Cells

Field Value

object[]

CurrentColumn

This is a valid position the Row.

protected int CurrentColumn

Field Value

int

Null

id of a null element in a Row

public static int Null

Field Value

int

Reserved

This is the array that keeps track of reserved cells.

protected bool[] Reserved

Field Value

bool[]

Table

id of the Table element in a Row

public static int Table

Field Value

int

columns

This is the number of columns in the Row.

protected int columns

Field Value

int

horizontalAlignment

This is the horizontal alignment.

protected int horizontalAlignment

Field Value

int

Properties

Chunks

implementation of the Element-methods

public IList<Chunk> Chunks { get; }

Property Value

IList<Chunk>

an ArrayList

Columns

Gets the number of columns.

public int Columns { get; }

Property Value

int

a value

HorizontalAlignment

Gets the horizontal Element.

public int HorizontalAlignment { get; set; }

Property Value

int

a value

Type

Gets the type of the text element.

public int Type { get; }

Property Value

int

a type

Methods

GetCell(int)

Gets a Cell or Table from a certain column.

public object GetCell(int column)

Parameters

column int

the column the Cell/Table is in.

Returns

object

the Cell,Table or Object if the column was reserved or null if empty.

IsContent()

@see com.lowagie.text.Element#isContent() @since iText 2.0.8

public bool IsContent()

Returns

bool

IsEmpty()

Checks if the row is empty.

public bool IsEmpty()

Returns

bool

true if none of the columns is reserved.

IsNestable()

@see com.lowagie.text.Element#isNestable() @since iText 2.0.8

public bool IsNestable()

Returns

bool

Process(IElementListener)

Processes the element by adding it (or the different parts) to a IElementListener.

public bool Process(IElementListener listener)

Parameters

listener IElementListener

an IElementListener

Returns

bool

true if the element was processed successfully