Table of Contents

Class SimpleCell

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

Summary description for SimpleCell.

public class SimpleCell : Rectangle, IPdfPCellEvent, ITextElementArray, IElement
Inheritance
SimpleCell
Implements
Inherited Members

Constructors

SimpleCell(bool)

A CellAttributes object is always constructed without any dimensions. Dimensions are defined after creation.

public SimpleCell(bool row)

Parameters

row bool

only true if the CellAttributes object represents a row.

Fields

CELL

the CellAttributes object represents a cell.

public const bool CELL = false

Field Value

bool

ROW

the CellAttributes object represents a row.

public const bool ROW = true

Field Value

bool

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

Field Value

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

Field Value

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

Field Value

bool

Properties

Cellgroup

public bool Cellgroup { get; set; }

Property Value

bool

Returns the cellgroup.

Colspan

public int Colspan { get; set; }

Property Value

int

Returns the colspan.

HorizontalAlignment

public int HorizontalAlignment { get; set; }

Property Value

int

Returns the horizontal alignment.

Padding

Sets the padding parameters if they are undefined.

public float Padding { set; }

Property Value

float

PaddingBottom

public float PaddingBottom { get; set; }

Property Value

float

PaddingLeft

an extra padding variable

public float PaddingLeft { get; set; }

Property Value

float

PaddingRight

an extra padding variable

public float PaddingRight { get; set; }

Property Value

float

PaddingTop

an extra padding variable

public float PaddingTop { get; set; }

Property Value

float

Spacing

public float Spacing { set; }

Property Value

float

Returns the spacing.

SpacingBottom

an extra spacing variable

public float SpacingBottom { get; set; }

Property Value

float

SpacingLeft

an extra spacing variable

public float SpacingLeft { get; set; }

Property Value

float

SpacingRight

an extra spacing variable

public float SpacingRight { get; set; }

Property Value

float

SpacingTop

an extra spacing variable

public float SpacingTop { get; set; }

Property Value

float

Type

public override int Type { get; }

Property Value

int

UseAscender

public bool UseAscender { get; set; }

Property Value

bool

Returns the useAscender.

UseBorderPadding

public bool UseBorderPadding { get; set; }

Property Value

bool

Returns the useBorderPadding.

UseDescender

public bool UseDescender { get; set; }

Property Value

bool

VerticalAlignment

vertical alignment inside the Cell.

public int VerticalAlignment { get; set; }

Property Value

int

Width

public float Width { get; set; }

Property Value

float

Returns the width.

Widthpercentage

public float Widthpercentage { get; set; }

Property Value

float

Returns the widthpercentage.

Methods

Add(IElement)

@see com.lowagie.text.TextElementArray#add(java.lang.Object)

public bool Add(IElement o)

Parameters

o IElement

Returns

bool

AddElement(IElement)

Adds content to this object. @throws BadElementException

public void AddElement(IElement element)

Parameters

element IElement

CellLayout(PdfPCell, Rectangle, PdfContentByte[])

@see com.lowagie.text.pdf.PdfPCellEvent#cellLayout(com.lowagie.text.pdf.PdfPCell, com.lowagie.text.Rectangle, com.lowagie.text.pdf.PdfContentByte[])

public void CellLayout(PdfPCell cell, Rectangle position, PdfContentByte[] canvases)

Parameters

cell PdfPCell
position Rectangle
canvases PdfContentByte[]

CreateCell(SimpleCell)

Creates a Cell with these attributes. @throws BadElementException

public Cell CreateCell(SimpleCell rowAttributes)

Parameters

rowAttributes SimpleCell

Returns

Cell

a cell based on these attributes.

CreatePdfPCell(SimpleCell)

Creates a PdfPCell with these attributes.

public PdfPCell CreatePdfPCell(SimpleCell rowAttributes)

Parameters

rowAttributes SimpleCell

Returns

PdfPCell

a PdfPCell based on these attributes.