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
boolonly true if the CellAttributes object represents a row.
Fields
CELL
the CellAttributes object represents a cell.
public const bool CELL = false
Field Value
ROW
the CellAttributes object represents a row.
public const bool ROW = true
Field Value
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
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
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
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
PaddingBottom
public float PaddingBottom { get; set; }
Property Value
PaddingLeft
an extra padding variable
public float PaddingLeft { get; set; }
Property Value
PaddingRight
an extra padding variable
public float PaddingRight { get; set; }
Property Value
PaddingTop
an extra padding variable
public float PaddingTop { get; set; }
Property Value
Spacing
public float Spacing { set; }
Property Value
- float
Returns the spacing.
SpacingBottom
an extra spacing variable
public float SpacingBottom { get; set; }
Property Value
SpacingLeft
an extra spacing variable
public float SpacingLeft { get; set; }
Property Value
SpacingRight
an extra spacing variable
public float SpacingRight { get; set; }
Property Value
SpacingTop
an extra spacing variable
public float SpacingTop { get; set; }
Property Value
Type
public override int Type { get; }
Property Value
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
VerticalAlignment
vertical alignment inside the Cell.
public int VerticalAlignment { get; set; }
Property Value
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
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
PdfPCellposition
Rectanglecanvases
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.