Answered
Get width of a table column in InDesign C++ SDK
Hello,
I am having the following code snippet to get the width of a specific column of a InDesign table
InterfacePtr<ITableSuite> tableSuite(..);
// code to select text in cell (0,2) to get the width of column 2
if (tableSuite->CanGetColumnSize())
{
PMReal columnsize = tableSuite->GetColumnSize();
colWidth = ::ToDouble(columnsize);
}
For some reason, this is always giving me the width of column 0. Is this the right way or are there other ways of getting column width of a specific column?
Thanks
