InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
SnpModifyTable Class Reference

Public Member Functions

ErrorCode InsertRows (ITableSuite *tableSuite, int32 howMany, Tables::ERelativePosition pos, const PMReal &rowHeight)
 
ErrorCode InsertColumns (ITableSuite *tableSuite, int32 howMany, Tables::ERelativePosition pos, const PMReal &colWidth)
 
ErrorCode DeleteRows (ITableSuite *tableSuite)
 
ErrorCode DeleteColumns (ITableSuite *tableSuite)
 
ErrorCode MergeCells (ITableSuite *tableSuite)
 
ErrorCode UnmergeCell (ITableSuite *tableSuite)
 

Detailed Description

  • Code showing modification of a table using ITableSuite.

This snippet highlights those ITableSuite functions that perform actions on the selection or on the table containing the selection. This snippet does not cover creating a table and filling its cells with text; the TableBasics SDK sample plug-in covers this.

For additional information regarding table attributes, look in the browseable API documentation for kTableAttrXXXBoss entries.

See Also
ITableSuite
ITableModel

Member Function Documentation

ErrorCode SnpModifyTable::DeleteColumns (ITableSuitetableSuite)
ErrorCode SnpModifyTable::DeleteRows (ITableSuitetableSuite)
ErrorCode SnpModifyTable::InsertColumns (ITableSuitetableSuite,
int32 howMany,
Tables::ERelativePosition pos,
const PMRealcolWidth 
)
ErrorCode SnpModifyTable::InsertRows (ITableSuitetableSuite,
int32 howMany,
Tables::ERelativePosition pos,
const PMRealrowHeight 
)
ErrorCode SnpModifyTable::MergeCells (ITableSuitetableSuite)
ErrorCode SnpModifyTable::UnmergeCell (ITableSuitetableSuite)