Skip to main content
கற_பன___Imagine_
Inspiring
February 8, 2012
Answered

How to get Paragraph Style range from story?

  • February 8, 2012
  • 1 reply
  • 1202 views

Hi All,

I want to get paragraph style range of Text from the document story.  Story object has the properties of textStyleRanges, while loop the textStyleRanges and print the contents in console that shows me the two different style ranges (Paragraph Style or Character Style);

Is it possible to get the Paragraph Style range of text  from a document stories.?

Thanks in advance for any suggestion/solution.

Regards,

Imagine.

This topic has been closed for replies.
Correct answer Laubender

@Imagine – Why not looping through all paragraphs of the story and looking for appliedParagraphStyle?
If you want it into a "range" you can feed them to an array…

What is the specific purpose of doing so?

Uwe

1 reply

LaubenderCorrect answer
Community Expert
February 8, 2012

@Imagine – Why not looping through all paragraphs of the story and looking for appliedParagraphStyle?
If you want it into a "range" you can feed them to an array…

What is the specific purpose of doing so?

Uwe

கற_பன___Imagine_
Inspiring
February 8, 2012

Hi Laubender,

What is the specific purpose of doing so?

I want to automate  to move the range of specific paragraph style into Anchored text frame.  I would like to use the textStyleRange object because of getting the range easily.

If i use the looping means need to make contatination for getting the range.  So that i try in textStyleRange way.  Is it possible to do in textStyleRange?

கற_பன___Imagine_
Inspiring
February 8, 2012

I done this automation what you suggested.  It works fine...   but anyway I would like to know any options to do this with textStyleRange.

Regards,

Imagine.