Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

How to get the table cell's inset space?

Enthusiast ,
Nov 14, 2016 Nov 14, 2016

Hi All,

How to get the table cell's inset (top, left, bottom, right) space?

Regards,

Chinna

TOPICS
SDK
751
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Advocate , Nov 14, 2016 Nov 14, 2016

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();

}

Translate
Advocate ,
Nov 14, 2016 Nov 14, 2016

Use ITableAttrAccessor::QueryCellAttribute.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Nov 14, 2016 Nov 14, 2016

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Nov 14, 2016 Nov 14, 2016

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();

}

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Nov 14, 2016 Nov 14, 2016
LATEST

Thank you so much Norio, It works.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines