I need to know the paragraph style above and below of the found paragraph style
Hi,
I know how find a paragraph by paragraph style, but I need to detect the paragraph style of the paragraph above and below of the paragraph found.
If a paragraph style above is "A", I will apply a "B1" style for the paragraph found, if the paragraph style above is the same of the paragraph found and the paragraph style below is the same too, I will apply "B2" style. If the paragraph style above is the same of the paragraph found and the paragraph style below is different I will apply "B3" style.
I'm trying with index ID, but no success.
So, any idea how can I Know the paragraph style below and above of the paragraph style found?
Thank you.