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

A Cell is a Rectangle containing other Elements.
A Cell is a Rectangle containing other Elements.

A Cell must be added to a Table. The Table will place the Cell in a Row.

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

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

Свойство Тип Описание
arrayList System.Collections.ArrayList
colspan int
groupChange bool
header bool
horizontalAlignment int
maxLines int
noWrap bool
percentage bool
rowspan int
useAscender bool
useBorderPadding bool
useDescender bool
verticalAlignment int
width float

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

Метод Описание
Add ( Object o ) : bool

Add an Object to this cell.

AddElement ( IElement element ) : void

Adds an element to this Cell.

You can't add ListItems, Rows, Cells, JPEGs, GIFs or PNGs to a Cell.

Cell ( ) : System

Constructs an empty Cell.

Cell ( IElement element ) : System

Constructs a Cell with a certain Element.

if the element is a ListItem, Row or Cell, an exception will be thrown.

Cell ( bool dummy ) : System

Constructs an empty Cell (for internal use only).

Cell ( string content ) : System

Constructs a Cell with a certain content.

The string will be converted into a Paragraph.

Clear ( ) : void

Clears all the Elements of this Cell.

CreatePdfPCell ( ) : PdfPCell
GetBottom ( int margin ) : float

This method throws an Exception.

GetLeft ( int margin ) : float

This method throws an Exception.

GetRight ( int margin ) : float

This method throws an Exception.

GetTop ( int margin ) : float

This method throws an Exception.

GetWidthAsString ( ) : String
IsEmpty ( ) : bool

Checks if the Cell is empty.

IsTable ( ) : bool

Checks if the Cell is empty.

IsTag ( string tag ) : bool

Checks if a given tag corresponds with this object.

Process ( IElementListener listener ) : bool

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

SetHorizontalAlignment ( string alignment ) : void

Sets the alignment of this cell.

SetVerticalAlignment ( string alignment ) : void

Sets the alignment of this paragraph.

SetWidth ( String value ) : void

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

Метод Описание
Fill ( ) : void

Makes sure there is at least 1 object in the Cell. Otherwise it might not be shown in the table.

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

Add() публичный метод

Add an Object to this cell.
public Add ( Object o ) : bool
o Object the object to add
Результат bool

AddElement() публичный метод

Adds an element to this Cell.
You can't add ListItems, Rows, Cells, JPEGs, GIFs or PNGs to a Cell.
public AddElement ( IElement element ) : void
element IElement the Element to add
Результат void

Cell() публичный метод

Constructs an empty Cell.
public Cell ( ) : System
Результат System

Cell() публичный метод

Constructs a Cell with a certain Element.
if the element is a ListItem, Row or Cell, an exception will be thrown.
public Cell ( IElement element ) : System
element IElement the element
Результат System

Cell() публичный метод

Constructs an empty Cell (for internal use only).
public Cell ( bool dummy ) : System
dummy bool a dummy value
Результат System

Cell() публичный метод

Constructs a Cell with a certain content.
The string will be converted into a Paragraph.
public Cell ( string content ) : System
content string a string
Результат System

Clear() публичный метод

Clears all the Elements of this Cell.
public Clear ( ) : void
Результат void

CreatePdfPCell() публичный метод

public CreatePdfPCell ( ) : PdfPCell
Результат iTextSharp.text.pdf.PdfPCell

GetBottom() публичный метод

This method throws an Exception.
public GetBottom ( int margin ) : float
margin int new value
Результат float

GetLeft() публичный метод

This method throws an Exception.
public GetLeft ( int margin ) : float
margin int new value
Результат float

GetRight() публичный метод

This method throws an Exception.
public GetRight ( int margin ) : float
margin int new value
Результат float

GetTop() публичный метод

This method throws an Exception.
public GetTop ( int margin ) : float
margin int new value
Результат float

GetWidthAsString() публичный метод

public GetWidthAsString ( ) : String
Результат String

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

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

IsTable() публичный метод

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

IsTag() публичный статический метод

Checks if a given tag corresponds with this object.
public static IsTag ( string tag ) : bool
tag string the given tag
Результат bool

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

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

SetHorizontalAlignment() публичный метод

Sets the alignment of this cell.
public SetHorizontalAlignment ( string alignment ) : void
alignment string the new alignment as a string
Результат void

SetVerticalAlignment() публичный метод

Sets the alignment of this paragraph.
public SetVerticalAlignment ( string alignment ) : void
alignment string the new alignment as a string
Результат void

SetWidth() публичный метод

public SetWidth ( String value ) : void
value String
Результат void

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

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

This is the ArrayList of Elements.
protected ArrayList,System.Collections arrayList
Результат System.Collections.ArrayList

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

This is the colspan.
protected int colspan
Результат int

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

Does this Cell force a group change?
protected bool groupChange
Результат bool

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

Is this Cell a header?
protected bool header
Результат bool

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

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

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

Maximum number of lines allowed in the cell. The default value of this property is not to limit the maximum number of lines (contributed by [email protected])
protected int maxLines
Результат int

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

Will the element have to be wrapped?
protected bool noWrap
Результат bool

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

protected bool percentage
Результат bool

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

This is the rowspan.
protected int rowspan
Результат int

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

Indicates that the largest ascender height should be used to determine the height of the first line. Note that this only has an effect when rendered to PDF. Setting this to true can help with vertical alignment problems.
protected bool useAscender
Результат bool

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

Adjusts the cell contents to compensate for border widths. Note that this only has an effect when rendered to PDF.
protected bool useBorderPadding
Результат bool

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

Indicates that the largest descender height should be added to the height of the last line (so characters like y don't dip into the border). Note that this only has an effect when rendered to PDF.
protected bool useDescender
Результат bool

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

This is the vertical Element.
protected int verticalAlignment
Результат int

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

This is the vertical Element.
protected float width
Результат float