3 Replies Latest reply on Sep 4, 2013 7:29 AM by Vamitul

    Calling character styles in group

    SimonLinden Level 1

      I'm getting frustrated at not being able to call character styles within groups in a simple manner. Shouldn't it work the same way as for paragraph styles?


      The following code is identical for the two style types, but while the paragraph style works the character style is invalid and has no properties assigned to it.


      var testcstyle = myDoc.characterStyleGroups.item("callers").characterStyles.item("footnote-caller");//object is invalid
      var testpstyle = myDoc.paragraphStyleGroups.item("paragraphs").paragraphStyles.item("p");// works fine