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

Bullet and Number - Tab Position

Contributor ,
Nov 25, 2014 Nov 25, 2014

Hi,

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

Screen shot 2014-11-25 at 2.54.20 PM.png

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

TOPICS
Scripting
1.0K
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 25, 2014 Nov 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

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
Contributor ,
Nov 25, 2014 Nov 25, 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

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 25, 2014 Nov 25, 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

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
Contributor ,
Nov 25, 2014 Nov 25, 2014

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.

Screen shot 2014-11-26 at 1.24.41 PM.png

Screen shot 2014-11-26 at 1.24.31 PM.png

- Sudha K

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
Mentor ,
Nov 26, 2014 Nov 26, 2014

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

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
Contributor ,
Dec 01, 2014 Dec 01, 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??

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 ,
Dec 02, 2014 Dec 02, 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?

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
Mentor ,
Dec 02, 2014 Dec 02, 2014
LATEST

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

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