CPDFDocumentAddTable Method |
Adds a table to the specified page.
Namespace:
ComPDFKit.PDFDocument
Assembly:
ComPDFKit.NET (in ComPDFKit.NET.dll) Version: 2.1.0+b8a973db4fce43f68ed31640e557d7c5478d7f58
Syntaxpublic bool AddTable(
int pageIndex,
int width,
int height,
int positionX,
int positionY,
int rows,
int cols,
List<string> addTexts = null,
List<CIntPoint> textPos = null,
List<string> imagePaths = null,
List<CIntPoint> imagePos = null
)
Parameters
- pageIndex
- Type: SystemInt32
page index - width
- Type: SystemInt32
table width - height
- Type: SystemInt32
table height - positionX
- Type: SystemInt32
table position X - positionY
- Type: SystemInt32
table position Y - rows
- Type: SystemInt32
table rows - cols
- Type: SystemInt32
table columns - addTexts (Optional)
- Type: System.Collections.GenericListString
table cell texts - textPos (Optional)
- Type: System.Collections.GenericListCIntPoint
table cell text positions - imagePaths (Optional)
- Type: System.Collections.GenericListString
table cell image paths - imagePos (Optional)
- Type: System.Collections.GenericListCIntPoint
table cell image positions
Return Value
Type:
BooleanReturns true on success, false on failure
See Also