Platforms to show: All Mac Windows Linux Cross-Platform

Back to DynaPDFTableMBS class.

DynaPDFTableMBS.AddColumn(left as boolean, width as Double) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 12.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Adds a column to the table.

See also AddColumn function in DynaPDF manual.

DynaPDFTableMBS.AddRows(count as UInt32, height as Double) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 12.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Adds a couple of rows with given height.

See also AddRows function in DynaPDF manual.

DynaPDFTableMBS.ClearColumn(Col as Integer, Types as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 13.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The function deletes the content in the specified column in all rows.

The paramter Types is described in ClearContent() below.

See also ClearColumn function in DynaPDF manual.

DynaPDFTableMBS.ClearContent(Types as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 12.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Clears content of table.

See kdc constants for possible flags.

See also ClearContent function in DynaPDF manual.

DynaPDFTableMBS.ClearRow(Row as Integer, Types as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 13.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The function deletes the content in the specified row.

The paramter Types is described in ClearContent().

See also ClearRow function in DynaPDF manual.

DynaPDFTableMBS.Constructor   Private

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 12.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The private constructor.

DynaPDFTableMBS.DeleteColumn(column as UInt32)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 12.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Deletes the column.

DynaPDFTableMBS.DeleteRow(row as UInt32)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 12.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Deletes the row with the given index.

See also DeleteRow function in DynaPDF manual.

DynaPDFTableMBS.DeleteRows

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 12.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Deletes all rows.

See also DeleteRows function in DynaPDF manual.

DynaPDFTableMBS.DrawTable(x as Double, y as Double, MaxHeight as Double = 0.0) as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 12.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Draws the table at the given position into the PDF:

The function draws the table on the specified position. The x/y-coordinates specify the top left cornerof the table. The table flows always from top to bottom.

The function must be executed in a while statement if the parameter MaxHeight is set to a value greater than zero.

The function draws the header rows if any and at least one row to avoid an endless loop if themaximum height would be smaller as the first row height.

If the function succeeds the return value is the height of the table that was drawn so that additionalcontents can be drawn below the table if necessary. If the function fails the return value is -1.

Some examples using this method:

See also DrawTable function in DynaPDF manual.

DynaPDFTableMBS.GetFirstRow as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 13.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Queries first row from last draw operation.

Some examples using this method:

See also GetFirstRow function in DynaPDF manual.

DynaPDFTableMBS.GetFlags(Row as Integer, Column as Integer) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 15.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Queries flag for a cell, a column or a row.

If Row is -1, only column flags are returned. If Column is -1, the row flags are returned for given row.

See also GetFlags function in DynaPDF manual.

DynaPDFTableMBS.GetNextHeight(MaxHeight as Double, byref NextRow as Integer) as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 13.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Queries the next row.
Example
Var pdf as new DynaPDFMBS
call pdf.CreateNewPDF(nil)
call pdf.Append

// create dummy table with 20 rows, 1 column and 500 points width. 20 points per row by default.
Var table as DynaPDFTableMBS = pdf.CreateTable(20, 1, 500.0, 20.0)

// fill in dummy data
for i as Integer = 1 to 20
Var rowNum as Integer = table.AddRow
call table.SetCellText(rowNum, 0, pdf.ktaLeft, table.kcoCenter, str(i))
next

// and do some calculations
Var nextrow as Integer
Var h as Double = table.GetNextHeight(0, nextrow)

MsgBox str(h)+" with no limit."

Var h2 as Double = table.GetNextHeight(200, nextrow)

MsgBox str(h2)+" with limit of 200 and rows till "+str(nextrow-1)

break

If MaxHeight is zero, returns the height of table.
If MaxHeight is the height of space available, plugin calculates the effective height of table and which row would be the next one.
Returns negative number on error.

See also GetNextHeight function in DynaPDF manual.

DynaPDFTableMBS.GetNextRow as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 13.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Queries next row of last draw operation.

Some examples using this method:

See also GetNextRow function in DynaPDF manual.

DynaPDFTableMBS.GetNumCols as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 13.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Queries number of columns of last draw operation.

See also GetNumCols function in DynaPDF manual.

DynaPDFTableMBS.GetNumRows as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 13.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Queries number of rows of last draw operation.

See also GetNumRows function in DynaPDF manual.

DynaPDFTableMBS.GetTableHeight as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 12.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Queries the table height.

See also GetTableHeight function in DynaPDF manual.

DynaPDFTableMBS.GetTableWidth as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 12.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Calculates table width.

See also GetTableWidth function in DynaPDF manual.

The items on this page are in the following plugins: MBS DynaPDF Plugin.


The biggest plugin in space...