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
Afficher le fichier Open project: red-gate/iTextSharp-4.1.6 Class Usage Examples

Protected Properties

Свойство 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

Méthodes publiques

Méthode 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

Méthode 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 méthode

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

AddElement() public méthode

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
Résultat void

Cell() public méthode

Constructs an empty Cell.
public Cell ( ) : System
Résultat System

Cell() public méthode

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
Résultat System

Cell() public méthode

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

Cell() public méthode

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

Clear() public méthode

Clears all the Elements of this Cell.
public Clear ( ) : void
Résultat void

CreatePdfPCell() public méthode

public CreatePdfPCell ( ) : PdfPCell
Résultat iTextSharp.text.pdf.PdfPCell

GetBottom() public méthode

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

GetLeft() public méthode

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

GetRight() public méthode

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

GetTop() public méthode

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

GetWidthAsString() public méthode

public GetWidthAsString ( ) : String
Résultat String

IsEmpty() public méthode

Checks if the Cell is empty.
public IsEmpty ( ) : bool
Résultat bool

IsTable() public méthode

Checks if the Cell is empty.
public IsTable ( ) : bool
Résultat bool

IsTag() public static méthode

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

Process() public méthode

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

SetHorizontalAlignment() public méthode

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

SetVerticalAlignment() public méthode

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

SetWidth() public méthode

public SetWidth ( String value ) : void
value String
Résultat void

Property Details

arrayList protected_oe property

This is the ArrayList of Elements.
protected ArrayList,System.Collections arrayList
Résultat System.Collections.ArrayList

colspan protected_oe property

This is the colspan.
protected int colspan
Résultat int

groupChange protected_oe property

Does this Cell force a group change?
protected bool groupChange
Résultat bool

header protected_oe property

Is this Cell a header?
protected bool header
Résultat bool

horizontalAlignment protected_oe property

This is the horizontal Element.
protected int horizontalAlignment
Résultat 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
Résultat int

noWrap protected_oe property

Will the element have to be wrapped?
protected bool noWrap
Résultat bool

percentage protected_oe property

protected bool percentage
Résultat bool

rowspan protected_oe property

This is the rowspan.
protected int rowspan
Résultat 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
Résultat 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
Résultat 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
Résultat bool

verticalAlignment protected_oe property

This is the vertical Element.
protected int verticalAlignment
Résultat int

width protected_oe property

This is the vertical Element.
protected float width
Résultat float