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

Public Member Functions

 SnpAccessTableContent ()
 
virtual ~SnpAccessTableContent ()
 
ErrorCode IterTable (InterfacePtr< ITableModel > &tableModel)
 
WideString GetTextFromCell (const InterfacePtr< ITableModel > &tableModel, const GridAddress &gridAddress)
 

Detailed Description

  • Shows how to iterate an entire table to get all the text.

Constructor & Destructor Documentation

SnpAccessTableContent::SnpAccessTableContent ()
inline

Constructor.

virtual SnpAccessTableContent::~SnpAccessTableContent ()
inlinevirtual

Destructor.

Member Function Documentation

WideString SnpAccessTableContent::GetTextFromCell (const InterfacePtr< ITableModel > & tableModel,
const GridAddressgridAddress 
)

Shows how to extract text from a cell at a particular GridAddress in a table. From the table model, you get the text model via ITableTextContainer interface.

Parameters
tableModelInterface pointer to the table model.
gridAddressGridAddress of the cell of choice.
Returns
WideString The text at the GridAddress as a WideString.
ErrorCode SnpAccessTableContent::IterTable (InterfacePtr< ITableModel > & tableModel)

Shows how to get text as WideString from all cells in a table.

Parameters
tableModelInterface pointer to the table model
Returns
kSuccess on success, kFailure otherwise.