Skip to main content
Inspiring
November 25, 2014
Question

Bullet and Number - Tab Position

  • November 25, 2014
  • 2 replies
  • 1053 views

Hi,

    I need to get the value Tab Position of Bullet and Numbering Options of Paragraph Style.

If i use the below code its returning the tab position of Tabs Options. But i need to get the tab position value of Bullet and Numbering Options.

Code :

tab = parStyle.tabList;

for(var tc = 0; tc < tab.length; tc++)

{

    tabX = tab[tc].position;

    tabLeader = tab[tc].leader;

    tabAlignOn = tab[tc].alignmentCharacter;      

}

Can anyone help me?

- Sudha K

This topic has been closed for replies.

2 replies

Sudha_KAuthor
Inspiring
December 2, 2014

Hi,

   thank you...

  But im getting this property for paragraph style not for text.

When i check some Values from Tabs Values contains this Tab Position Value.  but the last attachments Tabs does not have any value but the tab position contains value.  I don't know that From where this value coming??

Kai Rübsamen
Participating Frequently
December 3, 2014

Jarek,

if you set your values e.g. to Left Indent: 20 mm, First Line Indent 20 mm, Tab Position 50,8 mm, you will get autoamtically a tab on the ruler in the tabs bar. However: If you delete the tab in the ruler, the value in the bullets and numbering dialog is still alive and honored.

If you try to control this value, there is no tabStops[0]  >> therefore no possibility to control the position ?! Sudha is this your problem?

Jump_Over
Legend
December 3, 2014

Hi Kai,

Agree, thats how semi-automated feature works - something is going on in background but don't touch it cause "semi" starts to work against you. Microsoft Office has much more "successes" here.

Jarek

Legend
November 25, 2014

Try this,

tab = parStyle.tabStops;

for(var tc = 0; tc < tab.length; tc++)

{

    tabX = tab[tc].position;

    tabLeader = tab[tc].leader;

    tabAlignOn = tab[tc].alignment;     

}

Vandy

Sudha_KAuthor
Inspiring
November 26, 2014

Hi,

   What is the difference between tabStops and tabList??? Both return the same.

  tabStops return tabs used in document (tabs options + tab position in Bullet and Numbering).  How can i get the tab position (Bullet and Numbering) alone using script??

- Sudha K

Legend
November 26, 2014

How can i get the tab position (Bullet and Numbering) alone using script??

To my knowledge there is no property for Bullet and Numbering Tab position, but the actual tabList property ("tabX = tab[tc].position" in your code) will return the Bullets and Numbering tab position, then why you need that property?

Vandy