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

How do I set nested style to none?

Explorer ,
Jan 26, 2016 Jan 26, 2016

Copy link to clipboard

Copied

Hi, there.

I have a paragraph style, which contains two nested (char) styles.

var psBody = myDocument.paragraphStyles.add({ 

    name: "ps Body",

    appliedFont: "Cambria", 

    fontStyle: "Bold", 

    pointSize: 24, 

    justification: Justification.centerAlign,

    keepWithNext:1});

    psBody.nestedStyles.add({

        appliedCharacterStyle: ,//<=============

        delimiter: NestedStyleDelimiters.anyWord,

        inclusive: true,

        repetition: 1});

    psBody.nestedStyles.add({

        appliedCharacterStyle: csBlue,

        delimiter: NestedStyleDelimiters.anyWord,

        inclusive: true,

        repetition: 1});

How do I "say" that I want my first nested style to be none?

Any help would be appreciated

TOPICS
Scripting

Views

453

Translate

Translate

Report

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

Contributor , Jan 26, 2016 Jan 26, 2016

Hi

it's one of simple way to set [None] without dependency on the locale.

    psBody.nestedStyles.add({

        appliedCharacterStyle: "$ID/[No Character Style]",

        delimiter: NestedStyleDelimiters.anyWord,

        inclusive: true,

        repetition: 1});

thank you

mg.

Votes

Translate

Translate
Contributor ,
Jan 26, 2016 Jan 26, 2016

Copy link to clipboard

Copied

Hi

it's one of simple way to set [None] without dependency on the locale.

    psBody.nestedStyles.add({

        appliedCharacterStyle: "$ID/[No Character Style]",

        delimiter: NestedStyleDelimiters.anyWord,

        inclusive: true,

        repetition: 1});

thank you

mg.

Votes

Translate

Translate

Report

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
Explorer ,
Jan 27, 2016 Jan 27, 2016

Copy link to clipboard

Copied

LATEST

Thank you very much Milligramme

Votes

Translate

Translate

Report

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