How to get the GridAddress of a given character position?
Hi,
My starting point is that i know the startposition of a character in a ITextModel. So, i can test if the given position refers to an object in a table or in a regular textframe:
InterfacePtr<ITableModel> tableModel(Utils<ITableUtils>()->GetTableModel(txtModel, startPos + 1), UseDefaultIID());
if(!tableModel){
//Do things in a textframe (i'm not assuming this is text on a textpath, for simplicity)
} else {
//Do things on the containing table
}
I'm stuck on the "Do things on the containing table part". I want the containing cell of the text (the gridaddress, i assume?).
Anyone any ideas?
Thanks in advance!
Bart Devos.