C# Класс iTextSharp.text.Row

A Row is part of a Table and contains some Cells.
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.

Наследование: IElement
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
CELL int
NULL int
TABLE int

Защищенные свойства (Protected)

Свойство Тип Описание
cells Object[]
columns int
currentColumn int
horizontalAlignment int
reserved bool[]

Открытые методы

Метод Описание
GetCell ( int column ) : Object

Gets a Cell or Table from a certain column.

IsContent ( ) : bool
IsEmpty ( ) : bool

Checks if the row is empty.

IsNestable ( ) : bool
Process ( IElementListener listener ) : bool

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

ToString ( ) : string

Приватные методы

Метод Описание
AddElement ( Object element ) : int

Adds a Cell to the Row.

AddElement ( Object element, int column ) : int

Adds an element to the Row at the position given.

DeleteColumn ( int column ) : void

Deletes a certain column has been deleted.

GetElementID ( int column ) : int

Returns the type-id of the element in a Row.

GetObjectID ( Object element ) : int

Returns the type-id of an Object.

IsReserved ( int column ) : bool

Returns true/false when this position in the Row has been reserved, either filled or through a colspan of an Element.

Reserve ( int column ) : bool

Reserves a Cell in the Row.

Reserve ( int column, int size ) : bool

Reserves a Cell in the Row.

Row ( int columns ) : System

Constructs a Row with a certain number of columns.

SetElement ( Object aElement, nint column ) : void

Puts Cell to the Row at the position given, doesn't reserve colspan.

Описание методов

GetCell() публичный Метод

Gets a Cell or Table from a certain column.
public GetCell ( int column ) : Object
column int the column the Cell/Table is in.
Результат Object

IsContent() публичный Метод

public IsContent ( ) : bool
Результат bool

IsEmpty() публичный Метод

Checks if the row is empty.
public IsEmpty ( ) : bool
Результат bool

IsNestable() публичный Метод

public IsNestable ( ) : bool
Результат bool

Process() публичный Метод

Processes the element by adding it (or the different parts) to a IElementListener.
public Process ( IElementListener listener ) : bool
listener IElementListener an IElementListener
Результат bool

ToString() публичный Метод

public ToString ( ) : string
Результат string

Описание свойств

CELL публичное статическое свойство

id of the Cell element in a Row
public static int CELL
Результат int

NULL публичное статическое свойство

id of a null element in a Row
public static int NULL
Результат int

TABLE публичное статическое свойство

id of the Table element in a Row
public static int TABLE
Результат int

cells защищенное свойство

This is the array of Objects (Cell or Table).
protected Object[] cells
Результат Object[]

columns защищенное свойство

This is the number of columns in the Row.
protected int columns
Результат int

currentColumn защищенное свойство

This is a valid position the Row.
protected int currentColumn
Результат int

horizontalAlignment защищенное свойство

This is the horizontal alignment.
protected int horizontalAlignment
Результат int

reserved защищенное свойство

This is the array that keeps track of reserved cells.
protected bool[] reserved
Результат bool[]