Find a bullet in Word2003

P

Paul

Hi,

Word2003, VSTO 2005, C# (VS.NET 2005)

We're trying to verify that there is a bullet where we are finding a bullet
style. It appears that a bullet in Word2003 is a graphic, and our feeble
attempts to verify that it is there using code have not been successful.

We can easily determine whether there is a bullet style, but this refers to
the text, not the actual bullet. Is there a way to determine if the acutal
bullet is present?

Has anyone encountered this one before? If you need more information,
please let me know. I'm not sure whether the above is clear, or whether this
is the right forum.

Thanks in advance,
Paul
 
P

Paul

More info:
We tried this:


string BULLET = ((char)9679).ToString();
if (rng.Paragraphs[j].Range.FormattedText.Text.StartsWith(BULLET))
.....
OR
string BULLET = ((char)9679).ToString();
if (rng.Paragraphs[j].Range.Text.StartsWith(BULLET))
.....

Both of them didn't work and seem to be unable to 'see' the bullet.

Thanks,
Paul
 
K

Klaus Linke

Hi Paul,

Maybe try

Dim sBullet as String
sBullet=rng.Paragraphs(j).Range.ListFormat.ListString

Regards,
Klaus
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top