A
Adam
I have run into an issue with Paragraph runs in text.
To replicate the issue, in visio, make a shape with some text, then a
bulleted list, then some text at the bottom.
You should get three rows in the Paragraphs section of this shape (one for
the text above the bullets, one for the bullets, one for the text below the
bullets).
Now select the first bullet, unbullet it, then rebullet it.
You will now have four rows in the Paragraphs section (one for the text
above the bullets, one for the first bullet, one for the remaining bullets,
and one for the text below the bullets).
Now do a run through the Characters collection using visParaPropRow. You
will get a count of three, not four.
Ouch! Why does this hurt? If you do a Characters.ParaPropsRow(0) on the text
underneath your bullets, it will return 3 instead of 4, so if you want to
know if this fourth line is bulleted, you are stuck. visBulletIndex won't
give you the right value.
This is probably an edge case, but in my application, where I am converting
visio shapes with text into html, it is frustrating not being able to figure
out with certainty whether or not a line of text is bulletted.
Any ideas on a workaround?
To replicate the issue, in visio, make a shape with some text, then a
bulleted list, then some text at the bottom.
You should get three rows in the Paragraphs section of this shape (one for
the text above the bullets, one for the bullets, one for the text below the
bullets).
Now select the first bullet, unbullet it, then rebullet it.
You will now have four rows in the Paragraphs section (one for the text
above the bullets, one for the first bullet, one for the remaining bullets,
and one for the text below the bullets).
Now do a run through the Characters collection using visParaPropRow. You
will get a count of three, not four.
Ouch! Why does this hurt? If you do a Characters.ParaPropsRow(0) on the text
underneath your bullets, it will return 3 instead of 4, so if you want to
know if this fourth line is bulleted, you are stuck. visBulletIndex won't
give you the right value.
This is probably an edge case, but in my application, where I am converting
visio shapes with text into html, it is frustrating not being able to figure
out with certainty whether or not a line of text is bulletted.
Any ideas on a workaround?