PdfPTable Public class
Diagram
flowchart LR classDef interfaceStyle stroke-dasharray: 5 5; classDef abstractStyle stroke-width:4px subgraph iTextSharp.text.pdf iTextSharp.text.pdf.PdfPTable[[PdfPTable]] end subgraph iTextSharp.text iTextSharp.text.ILargeElement[[ILargeElement]] class iTextSharp.text.ILargeElement interfaceStyle; iTextSharp.text.IElement[[IElement]] class iTextSharp.text.IElement interfaceStyle; end subgraph iTextSharp.text.api iTextSharp.text.api.ISpaceable[[ISpaceable]] class iTextSharp.text.api.ISpaceable interfaceStyle; end subgraph iTextSharp.text.pdf.interfaces iTextSharp.text.pdf.interfaces.IAccessibleElement[[IAccessibleElement]] class iTextSharp.text.pdf.interfaces.IAccessibleElement interfaceStyle; end iTextSharp.text.ILargeElement --> iTextSharp.text.pdf.PdfPTable iTextSharp.text.IElement --> iTextSharp.text.ILargeElement iTextSharp.text.api.ISpaceable --> iTextSharp.text.pdf.PdfPTable iTextSharp.text.pdf.interfaces.IAccessibleElement --> iTextSharp.text.pdf.PdfPTable
Members
Properties
Public properties
|
Type |
Name |
Methods |
|---|---|---|
|
|
|
|
|
> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Methods
Public methods
|
Returns |
Name |
|---|---|
|
|
( |
|
|
() |
|
|
() |
|
|
() |
|
|
() |
|
|
( |
|
|
() |
|
|
(
key) |
|
,
> |
() |
|
|
() |
|
|
( |
|
|
( |
|
|
() |
|
|
() |
|
|
( |
|
|
( |
|
> |
( |
|
|
( |
|
|
( |
|
|
() |
|
|
() |
|
|
( |
|
|
() |
|
|
( |
|
|
() |
|
|
(
listener) |
|
|
( |
|
|
(
key,
value) |
|
|
( |
|
|
( |
|
|
( |
|
|
(
pageSize) |
|
|
( |
|
|
( |
|
|
() |
Protected internal methods
|
Returns |
Name |
|---|---|
|
|
() |
|
|
(
sourceTable) |
|
|
( |
Internal methods
|
Returns |
Name |
|---|---|
|
|
( |
|
|
( |
|
|
( |
|
|
( |
Protected methods
|
Returns |
Name |
|---|---|
|
|
( |
Public Static methods
|
Returns |
Name |
|---|---|
|
|
(
canvas) |
|
|
(
|
|
|
(
table) |
Details
Inheritance
Nested types
Classes
-
FittingRows -
ColumnMeasurementState
Constructors
PdfPTable [1/4]
Source code
protected PdfPTable()
PdfPTable [2/4]
Source code
public PdfPTable(float[] relativeWidths)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
relativeWidths |
PdfPTable [3/4]
Source code
public PdfPTable(int numColumns)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
numColumns |
PdfPTable [4/4]
Source code
public PdfPTable(PdfPTable table)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
table |
Methods
Init
Source code
public virtual void Init()
ShallowCopy
Source code
public static PdfPTable ShallowCopy(PdfPTable table)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
table |
CopyFormat
Source code
protected internal virtual void CopyFormat(PdfPTable sourceTable)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
sourceTable |
SetWidths [1/2]
Source code
public virtual void SetWidths(float[] relativeWidths)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
relativeWidths |
SetWidths [2/2]
Source code
public virtual void SetWidths(int[] relativeWidths)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
relativeWidths |
CalculateWidths
Source code
protected internal virtual void CalculateWidths()
SetTotalWidth
Source code
public virtual void SetTotalWidth(float[] columnWidth)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
columnWidth |
SetWidthPercentage
Source code
public virtual void SetWidthPercentage(float[] columnWidth, Rectangle pageSize)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
columnWidth |
|
|
|
pageSize |
CalculateHeights
Source code
public virtual float CalculateHeights()
ResetColumnCount
Source code
public virtual void ResetColumnCount(int newColCount)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
newColCount |
AddCell [1/5]
Source code
public virtual PdfPCell AddCell(PdfPCell cell)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
cell |
CellAt
Source code
internal PdfPCell CellAt(int row, int col)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
row |
|
|
|
col |
RowSpanAbove
Source code
internal bool RowSpanAbove(int currRow, int currCol)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
currRow |
|
|
|
currCol |
AddCell [2/5]
Source code
public virtual void AddCell(string text)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
text |
AddCell [3/5]
Source code
public virtual void AddCell(PdfPTable table)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
table |
AddCell [4/5]
Source code
public virtual void AddCell(Image image)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
image |
AddCell [5/5]
Source code
public virtual void AddCell(Phrase phrase)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
phrase |
WriteSelectedRows [1/6]
Source code
public virtual float WriteSelectedRows(int rowStart, int rowEnd, float xPos, float yPos, PdfContentByte[] canvases)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
rowStart |
|
|
|
rowEnd |
|
|
|
xPos |
|
|
|
yPos |
|
|
|
canvases |
WriteSelectedRows [2/6]
Source code
public virtual float WriteSelectedRows(int colStart, int colEnd, int rowStart, int rowEnd, float xPos, float yPos, PdfContentByte[] canvases)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
colStart |
|
|
|
colEnd |
|
|
|
rowStart |
|
|
|
rowEnd |
|
|
|
xPos |
|
|
|
yPos |
|
|
|
canvases |
WriteSelectedRows [3/6]
Source code
public virtual float WriteSelectedRows(int colStart, int colEnd, int rowStart, int rowEnd, float xPos, float yPos, PdfContentByte[] canvases, bool reusable)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
colStart |
|
|
|
colEnd |
|
|
|
rowStart |
|
|
|
rowEnd |
|
|
|
xPos |
|
|
|
yPos |
|
|
|
canvases |
|
|
|
reusable |
WriteSelectedRows [4/6]
Source code
public virtual float WriteSelectedRows(int rowStart, int rowEnd, float xPos, float yPos, PdfContentByte canvas)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
rowStart |
|
|
|
rowEnd |
|
|
|
xPos |
|
|
|
yPos |
|
|
|
canvas |
WriteSelectedRows [5/6]
Source code
public virtual float WriteSelectedRows(int colStart, int colEnd, int rowStart, int rowEnd, float xPos, float yPos, PdfContentByte canvas)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
colStart |
|
|
|
colEnd |
|
|
|
rowStart |
|
|
|
rowEnd |
|
|
|
xPos |
|
|
|
yPos |
|
|
|
canvas |
WriteSelectedRows [6/6]
Source code
public virtual float WriteSelectedRows(int colStart, int colEnd, int rowStart, int rowEnd, float xPos, float yPos, PdfContentByte canvas, bool reusable)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
colStart |
|
|
|
colEnd |
|
|
|
rowStart |
|
|
|
rowEnd |
|
|
|
xPos |
|
|
|
yPos |
|
|
|
canvas |
|
|
|
reusable |
BeginWritingRows
Source code
public static PdfContentByte BeginWritingRows(PdfContentByte canvas)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
canvas |
EndWritingRows
Source code
public static void EndWritingRows(PdfContentByte[] canvases)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
canvases |
GetRowHeight [1/2]
Source code
public virtual float GetRowHeight(int idx)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
idx |
GetRowHeight [2/2]
Source code
protected internal virtual float GetRowHeight(int idx, bool firsttime)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
idx |
|
|
|
firsttime |
GetRowspanHeight
Source code
public virtual float GetRowspanHeight(int rowIndex, int cellIndex)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
rowIndex |
|
|
|
cellIndex |
HasRowspan
Source code
public virtual bool HasRowspan(int rowIdx)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
rowIdx |
NormalizeHeadersFooters
Source code
public virtual void NormalizeHeadersFooters()
DeleteRow
Source code
public virtual bool DeleteRow(int rowNumber)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
rowNumber |
DeleteLastRow
Source code
public virtual bool DeleteLastRow()
DeleteBodyRows
Source code
public virtual void DeleteBodyRows()
IsContent
Source code
public virtual bool IsContent()
IsNestable
Source code
public virtual bool IsNestable()
Process
Source code
public virtual bool Process(IElementListener listener)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
listener |
GetRow
Source code
public virtual PdfPRow GetRow(int idx)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
idx |
getLastCompletedRowIndex
Source code
public virtual int getLastCompletedRowIndex()
SetBreakPoints
Source code
public virtual void SetBreakPoints(int[] breakPoints)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
breakPoints |
KeepRowsTogether [1/3]
Source code
public virtual void KeepRowsTogether(int[] rows)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
rows |
KeepRowsTogether [2/3]
Source code
public virtual void KeepRowsTogether(int start, int end)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
start |
|
|
|
end |
KeepRowsTogether [3/3]
Source code
public virtual void KeepRowsTogether(int start)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
start |
GetRows
Source code
public virtual List<PdfPRow> GetRows(int start, int end)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
start |
|
|
|
end |
AdjustCellsInRow
Source code
protected virtual PdfPRow AdjustCellsInRow(int start, int end)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
start |
|
|
|
end |
GetEventWidths
Source code
internal float GetEventWidths(float xPos, int firstRow, int lastRow, bool includeHeaders)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
xPos |
|
|
|
firstRow |
|
|
|
lastRow |
|
|
|
includeHeaders |
SetExtendLastRow
Source code
public virtual void SetExtendLastRow(bool extendLastRows, bool extendFinalRow)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
extendLastRows |
|
|
|
extendFinalRow |
IsExtendLastRow
Source code
public virtual bool IsExtendLastRow(bool newPageFollows)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
newPageFollows |
CompleteRow
Source code
public virtual void CompleteRow()
FlushContent
Source code
public virtual void FlushContent()
AddNumberOfRowsWritten
Source code
internal virtual void AddNumberOfRowsWritten(int numberOfWrittenRows)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
numberOfWrittenRows |
GetAccessibleAttribute
Source code
public virtual PdfObject GetAccessibleAttribute(PdfName key)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
key |
SetAccessibleAttribute
Source code
public virtual void SetAccessibleAttribute(PdfName key, PdfObject value)
Arguments
GetAccessibleAttributes
Source code
public virtual Dictionary<PdfName, PdfObject> GetAccessibleAttributes()
GetHeader
Source code
public virtual PdfPTableHeader GetHeader()
GetBody
Source code
public virtual PdfPTableBody GetBody()
GetFooter
Source code
public virtual PdfPTableFooter GetFooter()
GetCellStartRowIndex
Source code
public virtual int GetCellStartRowIndex(int rowIdx, int colIdx)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
rowIdx |
|
|
|
colIdx |
GetFittingRows
Source code
public virtual FittingRows GetFittingRows(float availableHeight, int startIdx)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
availableHeight |
|
|
|
startIdx |
Properties
Complete
public virtual bool Complete { get; set; }
TotalWidth
public virtual float TotalWidth { get; set; }
DefaultCell
public virtual PdfPCell DefaultCell { get; }
Size
public virtual int Size { get; }
TotalHeight
public virtual float TotalHeight { get; }
HeaderHeight
public virtual float HeaderHeight { get; }
FooterHeight
public virtual float FooterHeight { get; }
NumberOfColumns
public virtual int NumberOfColumns { get; }
HeaderRows
public virtual int HeaderRows { get; set; }
FooterRows
public virtual int FooterRows { get; set; }
Chunks
public virtual IList<Chunk> Chunks { get; }
Type
public virtual int Type { get; }
WidthPercentage
public virtual float WidthPercentage { get; set; }
HorizontalAlignment
public virtual int HorizontalAlignment { get; set; }
Rows
public virtual List<PdfPRow> Rows { get; }
TableEvent
public virtual IPdfPTableEvent TableEvent { get; set; }
AbsoluteWidths
public virtual float AbsoluteWidths { get; }
SkipFirstHeader
public virtual bool SkipFirstHeader { get; set; }
SkipLastFooter
public virtual bool SkipLastFooter { get; set; }
RunDirection
public virtual int RunDirection { get; set; }
LockedWidth
public virtual bool LockedWidth { get; set; }
SplitRows
public virtual bool SplitRows { get; set; }
SpacingBefore
public virtual float SpacingBefore { get; set; }
SpacingAfter
public virtual float SpacingAfter { get; set; }
PaddingTop
public virtual float PaddingTop { get; set; }
Summary
public virtual string Summary { get; set; }
ExtendLastRow
public virtual bool ExtendLastRow { get; set; }
HeadersInEvent
public virtual bool HeadersInEvent { get; set; }
SplitLate
public virtual bool SplitLate { get; set; }
KeepTogether
public virtual bool KeepTogether { get; set; }
ElementComplete
public virtual bool ElementComplete { get; set; }
LoopCheck
public virtual bool LoopCheck { get; set; }
Role
public virtual PdfName Role { get; set; }
ID
public virtual AccessibleElementId ID { get; set; }
IsInline
public virtual bool IsInline { get; }
Generated with ModularDoc