Author Topic: Tables. New Cell Style.  (Read 1749 times)

0 Members and 1 Guest are viewing this topic.

Pepe

  • Newt
  • Posts: 87
Tables. New Cell Style.
« on: February 28, 2018, 12:16:50 PM »
Hi,

I'm dealing with tables now.

I've generated a new cell style (let's say "MyOwnCellStyle") that I want to fill with data in a different format than 'standard' data cells.

I can't find any example through the Internet of how to do it (I mean text alignment, text height or any other parameter). żAnybody can help with some examples  :thinking:?

Thanks.

ahsattarian

  • Newt
  • Posts: 112
Re: Tables. New Cell Style.
« Reply #1 on: February 09, 2021, 02:13:37 PM »
Use commands :     vla-getcellstyle     &     vla-setcellstyle

Tharwat

  • Swamp Rat
  • Posts: 710
  • Hypersensitive
Re: Tables. New Cell Style.
« Reply #2 on: February 09, 2021, 04:44:18 PM »
Here is a few to start with.

Code: [Select]
(vla-settext tbl:obj row:num col:num txt:str)
(vla-setcelltextheight tbl:obj row:num col:num txt:hgt)
(vla-setcelltextstyle tbl:obj row:num col:num txt:sty)
(vla-setcellalignment tbl:obj row:num col:num acmiddlecenter)




Tharwat

  • Swamp Rat
  • Posts: 710
  • Hypersensitive
Re: Tables. New Cell Style.
« Reply #3 on: February 09, 2021, 04:46:26 PM »
Use commands :     vla-getcellstyle     &     vla-setcellstyle
FYI these are functions and not commands.