Copy link to clipboard
Copied
Hi All,
How to get the table cell's inset (top, left, bottom, right) space?
Regards,
Chinna
Try,
InterfacePtr<ITableAttrAccessor> attrAccessor(tableModel, UseDefaultIID());
InterfacePtr<ITableAttrRealNumber> leftInset((ITableAttrRealNumber*)attrAccessor->QueryCellAttribute
(gridAddress, kCellAttrLeftInsetBoss, IID_ITABLEATTRREALNUMBER));
PMReal leftInsetValue = 0;
if (leftInset != nil) {
leftInsetValue = leftInset->Get();
}
Copy link to clipboard
Copied
Use ITableAttrAccessor::QueryCellAttribute.
Copy link to clipboard
Copied
Hi Norio,
Thanks for your reply,
Still I unable to get the result. I'm trying with this code.
GridAddress gridAddress(k,j);
InterfacePtr<ITableAttrAccessor> tableattr(tableModel, UseDefaultIID());
GridArea gridarea;
tableattr->QueryCellAttribute(gridAddress, kCellAttrLeftInsetBoss, IID_ITABLEATTRREALNUMBER, &gridarea);
Regards,
Chinna
Copy link to clipboard
Copied
Try,
InterfacePtr<ITableAttrAccessor> attrAccessor(tableModel, UseDefaultIID());
InterfacePtr<ITableAttrRealNumber> leftInset((ITableAttrRealNumber*)attrAccessor->QueryCellAttribute
(gridAddress, kCellAttrLeftInsetBoss, IID_ITABLEATTRREALNUMBER));
PMReal leftInsetValue = 0;
if (leftInset != nil) {
leftInsetValue = leftInset->Get();
}
Copy link to clipboard
Copied
Thank you so much Norio, It works.
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more