How to get coordinates of table cell in a multi column text frame
Hi All,
I am using following code to get the table coordinate as it shown in the info panel.
Regards,
Alam
Hi All,
I am using following code to get the table coordinate as it shown in the info panel.
Regards,
Alam
This should give you the rect relative to parent frame. Seems to work with tables within tables.
How you arrive at storythreadp and key is up to you.
As Dirk mentioned you will have to consider indents and others.
InterfacePtr<ICellContent> cellcontentp(storythreadp, UseDefaultIID());
if ( cellcontentp )
.... .... ...
PMRect cr = cellcontentp->GetCellPathBounds ( key );
PMMatrix m = cellcontentp->GetParcelToFrameMatrix ( key );
m.Transform ( &cr );
... ... ...
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.