Skip to main content
Skip table of contents

PdfPTable (1)

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
TypeNameMethods
float``[]AbsoluteWidthsget
IList<Chunk>Chunksget
boolCompleteget, set
PdfPCellDefaultCellget
boolElementCompleteget, set
boolExtendLastRowget, set
floatFooterHeightget
intFooterRowsget, set
floatHeaderHeightget
intHeaderRowsget, set
boolHeadersInEventget, set
intHorizontalAlignmentget, set
AccessibleElementIdIDget, set
boolIsInlineget
boolKeepTogetherget, set
boolLockedWidthget, set
boolLoopCheckget, set
intNumberOfColumnsget
floatPaddingTopget, set
PdfNameRoleget, set
List<PdfPRow>Rowsget
intRunDirectionget, set
intSizeget
boolSkipFirstHeaderget, set
boolSkipLastFooterget, set
floatSpacingAfterget, set
floatSpacingBeforeget, set
boolSplitLateget, set
boolSplitRowsget, set
stringSummaryget, set
IPdfPTableEventTableEventget, set
floatTotalHeightget
floatTotalWidthget, set
intTypeget
floatWidthPercentageget, set

Methods

Public methods
ReturnsName
PdfPCellAddCell(...)
floatCalculateHeights()
voidCompleteRow()
voidDeleteBodyRows()
boolDeleteLastRow()
boolDeleteRow(int rowNumber)
voidFlushContent()
PdfObjectGetAccessibleAttribute(PdfName key)
Dictionary<PdfName, PdfObject>GetAccessibleAttributes()
PdfPTableBodyGetBody()
intGetCellStartRowIndex(int rowIdx, int colIdx)
FittingRowsGetFittingRows(float availableHeight, int startIdx)
PdfPTableFooterGetFooter()
PdfPTableHeaderGetHeader()
PdfPRowGetRow(int idx)
floatGetRowHeight(int idx)
List<PdfPRow>GetRows(int start, int end)
floatGetRowspanHeight(int rowIndex, int cellIndex)
boolHasRowspan(int rowIdx)
voidInit()
boolIsContent()
boolIsExtendLastRow(bool newPageFollows)
boolIsNestable()
voidKeepRowsTogether(...)
voidNormalizeHeadersFooters()
boolProcess(IElementListener listener)
voidResetColumnCount(int newColCount)
voidSetAccessibleAttribute(PdfName key, PdfObject value)
voidSetBreakPoints(int``[] breakPoints)
voidSetExtendLastRow(bool extendLastRows, bool extendFinalRow)
voidSetTotalWidth(float``[] columnWidth)
voidSetWidthPercentage(float``[] columnWidth, Rectangle pageSize)
voidSetWidths(...)
floatWriteSelectedRows(...)
intgetLastCompletedRowIndex()
Protected internal methods
ReturnsName
voidCalculateWidths()
voidCopyFormat(PdfPTable sourceTable)
floatGetRowHeight(int idx, bool firsttime)
Internal methods
ReturnsName
voidAddNumberOfRowsWritten(int numberOfWrittenRows)
PdfPCellCellAt(int row, int col)
float``[][]GetEventWidths(float xPos, int firstRow, int lastRow, bool includeHeaders)
boolRowSpanAbove(int currRow, int currCol)
Protected methods
ReturnsName
PdfPRowAdjustCellsInRow(int start, int end)
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
TypeNameDescription
float``[]relativeWidths
PdfPTable [3/4]

Source code

public PdfPTable(int numColumns)
Arguments
TypeNameDescription
intnumColumns
PdfPTable [4/4]

Source code

public PdfPTable(PdfPTable table)
Arguments
TypeNameDescription
PdfPTabletable

Methods

Init

Source code

public virtual void Init()
ShallowCopy

Source code

public static PdfPTable ShallowCopy(PdfPTable table)
Arguments
TypeNameDescription
PdfPTabletable
CopyFormat

Source code

protected internal virtual void CopyFormat(PdfPTable sourceTable)
Arguments
TypeNameDescription
PdfPTablesourceTable
SetWidths [1/2]

Source code

public virtual void SetWidths(float[] relativeWidths)
Arguments
TypeNameDescription
float``[]relativeWidths
SetWidths [2/2]

Source code

public virtual void SetWidths(int[] relativeWidths)
Arguments
TypeNameDescription
int``[]relativeWidths
CalculateWidths

Source code

protected internal virtual void CalculateWidths()
SetTotalWidth

Source code

public virtual void SetTotalWidth(float[] columnWidth)
Arguments
TypeNameDescription
float``[]columnWidth
SetWidthPercentage

Source code

public virtual void SetWidthPercentage(float[] columnWidth, Rectangle pageSize)
Arguments
TypeNameDescription
float``[]columnWidth
RectanglepageSize
CalculateHeights

Source code

public virtual float CalculateHeights()
ResetColumnCount

Source code

public virtual void ResetColumnCount(int newColCount)
Arguments
TypeNameDescription
intnewColCount
AddCell [1/5]

Source code

public virtual PdfPCell AddCell(PdfPCell cell)
Arguments
TypeNameDescription
PdfPCellcell
CellAt

Source code

internal PdfPCell CellAt(int row, int col)
Arguments
TypeNameDescription
introw
intcol
RowSpanAbove

Source code

internal bool RowSpanAbove(int currRow, int currCol)
Arguments
TypeNameDescription
intcurrRow
intcurrCol
AddCell [2/5]

Source code

public virtual void AddCell(string text)
Arguments
TypeNameDescription
stringtext
AddCell [3/5]

Source code

public virtual void AddCell(PdfPTable table)
Arguments
TypeNameDescription
PdfPTabletable
AddCell [4/5]

Source code

public virtual void AddCell(Image image)
Arguments
TypeNameDescription
Imageimage
AddCell [5/5]

Source code

public virtual void AddCell(Phrase phrase)
Arguments
TypeNameDescription
Phrasephrase
WriteSelectedRows [1/6]

Source code

public virtual float WriteSelectedRows(int rowStart, int rowEnd, float xPos, float yPos, PdfContentByte[] canvases)
Arguments
TypeNameDescription
introwStart
introwEnd
floatxPos
floatyPos
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
TypeNameDescription
intcolStart
intcolEnd
introwStart
introwEnd
floatxPos
floatyPos
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
TypeNameDescription
intcolStart
intcolEnd
introwStart
introwEnd
floatxPos
floatyPos
PdfContentByte[]canvases
boolreusable
WriteSelectedRows [4/6]

Source code

public virtual float WriteSelectedRows(int rowStart, int rowEnd, float xPos, float yPos, PdfContentByte canvas)
Arguments
TypeNameDescription
introwStart
introwEnd
floatxPos
floatyPos
PdfContentBytecanvas
WriteSelectedRows [5/6]

Source code

public virtual float WriteSelectedRows(int colStart, int colEnd, int rowStart, int rowEnd, float xPos, float yPos, PdfContentByte canvas)
Arguments
TypeNameDescription
intcolStart
intcolEnd
introwStart
introwEnd
floatxPos
floatyPos
PdfContentBytecanvas
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
TypeNameDescription
intcolStart
intcolEnd
introwStart
introwEnd
floatxPos
floatyPos
PdfContentBytecanvas
boolreusable
BeginWritingRows

Source code

public static PdfContentByte BeginWritingRows(PdfContentByte canvas)
Arguments
TypeNameDescription
PdfContentBytecanvas
EndWritingRows

Source code

public static void EndWritingRows(PdfContentByte[] canvases)
Arguments
TypeNameDescription
PdfContentByte[]canvases
GetRowHeight [1/2]

Source code

public virtual float GetRowHeight(int idx)
Arguments
TypeNameDescription
intidx
GetRowHeight [2/2]

Source code

protected internal virtual float GetRowHeight(int idx, bool firsttime)
Arguments
TypeNameDescription
intidx
boolfirsttime
GetRowspanHeight

Source code

public virtual float GetRowspanHeight(int rowIndex, int cellIndex)
Arguments
TypeNameDescription
introwIndex
intcellIndex
HasRowspan

Source code

public virtual bool HasRowspan(int rowIdx)
Arguments
TypeNameDescription
introwIdx
NormalizeHeadersFooters

Source code

public virtual void NormalizeHeadersFooters()
DeleteRow

Source code

public virtual bool DeleteRow(int rowNumber)
Arguments
TypeNameDescription
introwNumber
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
TypeNameDescription
IElementListenerlistener
GetRow

Source code

public virtual PdfPRow GetRow(int idx)
Arguments
TypeNameDescription
intidx
getLastCompletedRowIndex

Source code

public virtual int getLastCompletedRowIndex()
SetBreakPoints

Source code

public virtual void SetBreakPoints(int[] breakPoints)
Arguments
TypeNameDescription
int``[]breakPoints
KeepRowsTogether [1/3]

Source code

public virtual void KeepRowsTogether(int[] rows)
Arguments
TypeNameDescription
int``[]rows
KeepRowsTogether [2/3]

Source code

public virtual void KeepRowsTogether(int start, int end)
Arguments
TypeNameDescription
intstart
intend
KeepRowsTogether [3/3]

Source code

public virtual void KeepRowsTogether(int start)
Arguments
TypeNameDescription
intstart
GetRows

Source code

public virtual List<PdfPRow> GetRows(int start, int end)
Arguments
TypeNameDescription
intstart
intend
AdjustCellsInRow

Source code

protected virtual PdfPRow AdjustCellsInRow(int start, int end)
Arguments
TypeNameDescription
intstart
intend
GetEventWidths

Source code

internal float GetEventWidths(float xPos, int firstRow, int lastRow, bool includeHeaders)
Arguments
TypeNameDescription
floatxPos
intfirstRow
intlastRow
boolincludeHeaders
SetExtendLastRow

Source code

public virtual void SetExtendLastRow(bool extendLastRows, bool extendFinalRow)
Arguments
TypeNameDescription
boolextendLastRows
boolextendFinalRow
IsExtendLastRow

Source code

public virtual bool IsExtendLastRow(bool newPageFollows)
Arguments
TypeNameDescription
boolnewPageFollows
CompleteRow

Source code

public virtual void CompleteRow()
FlushContent

Source code

public virtual void FlushContent()
AddNumberOfRowsWritten

Source code

internal virtual void AddNumberOfRowsWritten(int numberOfWrittenRows)
Arguments
TypeNameDescription
intnumberOfWrittenRows
GetAccessibleAttribute

Source code

public virtual PdfObject GetAccessibleAttribute(PdfName key)
Arguments
TypeNameDescription
PdfNamekey
SetAccessibleAttribute

Source code

public virtual void SetAccessibleAttribute(PdfName key, PdfObject value)
Arguments
TypeNameDescription
PdfNamekey
PdfObjectvalue
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
TypeNameDescription
introwIdx
intcolIdx
GetFittingRows

Source code

public virtual FittingRows GetFittingRows(float availableHeight, int startIdx)
Arguments
TypeNameDescription
floatavailableHeight
intstartIdx

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

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.