Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
Hi,
When I am getting style properties, in Tabs palette tab stops is 0 but Bullet and Numbering palette contains value. In this case how can i get that value.
- Sudha K
Copy link to clipboard
Copied
Hi,
Typing "tab" does not mean to set its position. Make an exercise, pls.
"Tab" typed means text is pushed to default distance - but any tabStop is defined for current text.
Same if you create a bullet - initially "tab" is added but any tabStop is defined. However you can modify this field.
From this point ==> text.tabStops[0].position is the way to read this distance
Jarek
Copy link to clipboard
Copied
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??
Copy link to clipboard
Copied
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?
Copy link to clipboard
Copied
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
Find more inspiration, events, and resources on the new Adobe Community
Explore Now