C# Class 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.

Inheritance: Rectangle, ITextElementArray
ファイルを表示 Open project: red-gate/iTextSharp-4.1.6 Class Usage Examples

Protected Properties

Property Type Description
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

Public Methods

Method Description
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

Private Methods

Method Description
Fill ( ) : void

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

Method Details

Add() public method

Add an Object to this cell.
public Add ( Object o ) : bool
o Object the object to add
return bool

AddElement() public method

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
return void

Cell() public method

Constructs an empty Cell.
public Cell ( ) : System
return System

Cell() public method

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
return System

Cell() public method

Constructs an empty Cell (for internal use only).
public Cell ( bool dummy ) : System
dummy bool a dummy value
return System

Cell() public method

Constructs a Cell with a certain content.
The string will be converted into a Paragraph.
public Cell ( string content ) : System
content string a string
return System

Clear() public method

Clears all the Elements of this Cell.
public Clear ( ) : void
return void

CreatePdfPCell() public method

public CreatePdfPCell ( ) : PdfPCell
return iTextSharp.text.pdf.PdfPCell

GetBottom() public method

This method throws an Exception.
public GetBottom ( int margin ) : float
margin int new value
return float

GetLeft() public method

This method throws an Exception.
public GetLeft ( int margin ) : float
margin int new value
return float

GetRight() public method

This method throws an Exception.
public GetRight ( int margin ) : float
margin int new value
return float

GetTop() public method

This method throws an Exception.
public GetTop ( int margin ) : float
margin int new value
return float

GetWidthAsString() public method

public GetWidthAsString ( ) : String
return String

IsEmpty() public method

Checks if the Cell is empty.
public IsEmpty ( ) : bool
return bool

IsTable() public method

Checks if the Cell is empty.
public IsTable ( ) : bool
return bool

IsTag() public static method

Checks if a given tag corresponds with this object.
public static IsTag ( string tag ) : bool
tag string the given tag
return bool

Process() public method

Processes the element by adding it (or the different parts) to an IElementListener.
public Process ( IElementListener listener ) : bool
listener IElementListener an IElementListener
return bool

SetHorizontalAlignment() public method

Sets the alignment of this cell.
public SetHorizontalAlignment ( string alignment ) : void
alignment string the new alignment as a string
return void

SetVerticalAlignment() public method

Sets the alignment of this paragraph.
public SetVerticalAlignment ( string alignment ) : void
alignment string the new alignment as a string
return void

SetWidth() public method

public SetWidth ( String value ) : void
value String
return void

Property Details

arrayList protected_oe property

This is the ArrayList of Elements.
protected ArrayList,System.Collections arrayList
return System.Collections.ArrayList

colspan protected_oe property

This is the colspan.
protected int colspan
return int

groupChange protected_oe property

Does this Cell force a group change?
protected bool groupChange
return bool

header protected_oe property

Is this Cell a header?
protected bool header
return bool

horizontalAlignment protected_oe property

This is the horizontal Element.
protected int horizontalAlignment
return int

maxLines protected_oe property

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
return int

noWrap protected_oe property

Will the element have to be wrapped?
protected bool noWrap
return bool

percentage protected_oe property

protected bool percentage
return bool

rowspan protected_oe property

This is the rowspan.
protected int rowspan
return int

useAscender protected_oe property

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
return bool

useBorderPadding protected_oe property

Adjusts the cell contents to compensate for border widths. Note that this only has an effect when rendered to PDF.
protected bool useBorderPadding
return bool

useDescender protected_oe property

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
return bool

verticalAlignment protected_oe property

This is the vertical Element.
protected int verticalAlignment
return int

width protected_oe property

This is the vertical Element.
protected float width
return float