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 |
---|
float``[] | AbsoluteWidths | get |
IList <Chunk > | Chunks | get |
bool | Complete | get, set |
PdfPCell | DefaultCell | get |
bool | ElementComplete | get, set |
bool | ExtendLastRow | get, set |
float | FooterHeight | get |
int | FooterRows | get, set |
float | HeaderHeight | get |
int | HeaderRows | get, set |
bool | HeadersInEvent | get, set |
int | HorizontalAlignment | get, set |
AccessibleElementId | ID | get, set |
bool | IsInline | get |
bool | KeepTogether | get, set |
bool | LockedWidth | get, set |
bool | LoopCheck | get, set |
int | NumberOfColumns | get |
float | PaddingTop | get, set |
PdfName | Role | get, set |
List <PdfPRow > | Rows | get |
int | RunDirection | get, set |
int | Size | get |
bool | SkipFirstHeader | get, set |
bool | SkipLastFooter | get, set |
float | SpacingAfter | get, set |
float | SpacingBefore | get, set |
bool | SplitLate | get, set |
bool | SplitRows | get, set |
string | Summary | get, set |
IPdfPTableEvent | TableEvent | get, set |
float | TotalHeight | get |
float | TotalWidth | get, set |
int | Type | get |
float | WidthPercentage | get, set |
Methods
Public methods
Protected internal methods
Internal methods
Protected methods
Public Static methods
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 |
---|
float``[] | relativeWidths | |
PdfPTable [3/4]
Source code
public PdfPTable(int numColumns)
Arguments
Type | Name | Description |
---|
int | numColumns | |
PdfPTable [4/4]
Source code
public PdfPTable(PdfPTable table)
Arguments
Methods
Init
Source code
public virtual void Init()
ShallowCopy
Source code
public static PdfPTable ShallowCopy(PdfPTable table)
Arguments
Source code
protected internal virtual void CopyFormat(PdfPTable sourceTable)
Arguments
SetWidths [1/2]
Source code
public virtual void SetWidths(float[] relativeWidths)
Arguments
Type | Name | Description |
---|
float``[] | relativeWidths | |
SetWidths [2/2]
Source code
public virtual void SetWidths(int[] relativeWidths)
Arguments
Type | Name | Description |
---|
int``[] | relativeWidths | |
CalculateWidths
Source code
protected internal virtual void CalculateWidths()
SetTotalWidth
Source code
public virtual void SetTotalWidth(float[] columnWidth)
Arguments
Type | Name | Description |
---|
float``[] | columnWidth | |
SetWidthPercentage
Source code
public virtual void SetWidthPercentage(float[] columnWidth, Rectangle pageSize)
Arguments
Type | Name | Description |
---|
float``[] | columnWidth | |
Rectangle | pageSize | |
CalculateHeights
Source code
public virtual float CalculateHeights()
ResetColumnCount
Source code
public virtual void ResetColumnCount(int newColCount)
Arguments
Type | Name | Description |
---|
int | newColCount | |
AddCell [1/5]
Source code
public virtual PdfPCell AddCell(PdfPCell cell)
Arguments
CellAt
Source code
internal PdfPCell CellAt(int row, int col)
Arguments
Type | Name | Description |
---|
int | row | |
int | col | |
RowSpanAbove
Source code
internal bool RowSpanAbove(int currRow, int currCol)
Arguments
Type | Name | Description |
---|
int | currRow | |
int | currCol | |
AddCell [2/5]
Source code
public virtual void AddCell(string text)
Arguments
Type | Name | Description |
---|
string | text | |
AddCell [3/5]
Source code
public virtual void AddCell(PdfPTable table)
Arguments
AddCell [4/5]
Source code
public virtual void AddCell(Image image)
Arguments
Type | Name | Description |
---|
Image | image | |
AddCell [5/5]
Source code
public virtual void AddCell(Phrase phrase)
Arguments
Type | Name | Description |
---|
Phrase | phrase | |
WriteSelectedRows [1/6]
Source code
public virtual float WriteSelectedRows(int rowStart, int rowEnd, float xPos, float yPos, PdfContentByte[] canvases)
Arguments
Type | Name | Description |
---|
int | rowStart | |
int | rowEnd | |
float | xPos | |
float | yPos | |
PdfContentByte [] | 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 |
---|
int | colStart | |
int | colEnd | |
int | rowStart | |
int | rowEnd | |
float | xPos | |
float | yPos | |
PdfContentByte [] | 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 |
---|
int | colStart | |
int | colEnd | |
int | rowStart | |
int | rowEnd | |
float | xPos | |
float | yPos | |
PdfContentByte [] | canvases | |
bool | reusable | |
WriteSelectedRows [4/6]
Source code
public virtual float WriteSelectedRows(int rowStart, int rowEnd, float xPos, float yPos, PdfContentByte canvas)
Arguments
Type | Name | Description |
---|
int | rowStart | |
int | rowEnd | |
float | xPos | |
float | yPos | |
PdfContentByte | 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 |
---|
int | colStart | |
int | colEnd | |
int | rowStart | |
int | rowEnd | |
float | xPos | |
float | yPos | |
PdfContentByte | 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 |
---|
int | colStart | |
int | colEnd | |
int | rowStart | |
int | rowEnd | |
float | xPos | |
float | yPos | |
PdfContentByte | canvas | |
bool | reusable | |
BeginWritingRows
Source code
public static PdfContentByte BeginWritingRows(PdfContentByte canvas)
Arguments
EndWritingRows
Source code
public static void EndWritingRows(PdfContentByte[] canvases)
Arguments
GetRowHeight [1/2]
Source code
public virtual float GetRowHeight(int idx)
Arguments
Type | Name | Description |
---|
int | idx | |
GetRowHeight [2/2]
Source code
protected internal virtual float GetRowHeight(int idx, bool firsttime)
Arguments
Type | Name | Description |
---|
int | idx | |
bool | firsttime | |
GetRowspanHeight
Source code
public virtual float GetRowspanHeight(int rowIndex, int cellIndex)
Arguments
Type | Name | Description |
---|
int | rowIndex | |
int | cellIndex | |
HasRowspan
Source code
public virtual bool HasRowspan(int rowIdx)
Arguments
Type | Name | Description |
---|
int | rowIdx | |
Source code
public virtual void NormalizeHeadersFooters()
DeleteRow
Source code
public virtual bool DeleteRow(int rowNumber)
Arguments
Type | Name | Description |
---|
int | 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
GetRow
Source code
public virtual PdfPRow GetRow(int idx)
Arguments
Type | Name | Description |
---|
int | idx | |
getLastCompletedRowIndex
Source code
public virtual int getLastCompletedRowIndex()
SetBreakPoints
Source code
public virtual void SetBreakPoints(int[] breakPoints)
Arguments
Type | Name | Description |
---|
int``[] | breakPoints | |
KeepRowsTogether [1/3]
Source code
public virtual void KeepRowsTogether(int[] rows)
Arguments
Type | Name | Description |
---|
int``[] | rows | |
KeepRowsTogether [2/3]
Source code
public virtual void KeepRowsTogether(int start, int end)
Arguments
Type | Name | Description |
---|
int | start | |
int | end | |
KeepRowsTogether [3/3]
Source code
public virtual void KeepRowsTogether(int start)
Arguments
Type | Name | Description |
---|
int | start | |
GetRows
Source code
public virtual List<PdfPRow> GetRows(int start, int end)
Arguments
Type | Name | Description |
---|
int | start | |
int | end | |
AdjustCellsInRow
Source code
protected virtual PdfPRow AdjustCellsInRow(int start, int end)
Arguments
Type | Name | Description |
---|
int | start | |
int | end | |
GetEventWidths
Source code
internal float GetEventWidths(float xPos, int firstRow, int lastRow, bool includeHeaders)
Arguments
Type | Name | Description |
---|
float | xPos | |
int | firstRow | |
int | lastRow | |
bool | includeHeaders | |
SetExtendLastRow
Source code
public virtual void SetExtendLastRow(bool extendLastRows, bool extendFinalRow)
Arguments
Type | Name | Description |
---|
bool | extendLastRows | |
bool | extendFinalRow | |
IsExtendLastRow
Source code
public virtual bool IsExtendLastRow(bool newPageFollows)
Arguments
Type | Name | Description |
---|
bool | 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 |
---|
int | numberOfWrittenRows | |
GetAccessibleAttribute
Source code
public virtual PdfObject GetAccessibleAttribute(PdfName key)
Arguments
SetAccessibleAttribute
Source code
public virtual void SetAccessibleAttribute(PdfName key, PdfObject value)
Arguments
GetAccessibleAttributes
Source code
public virtual Dictionary<PdfName, PdfObject> GetAccessibleAttributes()
Source code
public virtual PdfPTableHeader GetHeader()
GetBody
Source code
public virtual PdfPTableBody GetBody()
Source code
public virtual PdfPTableFooter GetFooter()
GetCellStartRowIndex
Source code
public virtual int GetCellStartRowIndex(int rowIdx, int colIdx)
Arguments
Type | Name | Description |
---|
int | rowIdx | |
int | colIdx | |
GetFittingRows
Source code
public virtual FittingRows GetFittingRows(float availableHeight, int startIdx)
Arguments
Type | Name | Description |
---|
float | availableHeight | |
int | 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; }
public virtual float HeaderHeight { get; }
public virtual float FooterHeight { get; }
NumberOfColumns
public virtual int NumberOfColumns { get; }
public virtual int HeaderRows { get; set; }
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; }
public virtual bool SkipFirstHeader { get; set; }
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; }
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