Programmatically select parts of shape's text

C

Chris Roth [Visio MVP]

Hi Marx,

Look at the Characters object of a shape (in the developer reference)

You've got shp.Text, and also shp.Characters.

The Characters object allows you to select runs of text via the Begin
and End properties. This allows you to programatically manipulate bits
of text on a shape.

I'm not sure if you can visually select sub-strings in the UI, however.


--
Hope this helps,

Chris Roth
Visio MVP


Visio Guy: Smart Graphics for Visual People

Articles: http://www.visguy.com
Shapes: http://www.visguy.com/shapes
Dev: http://www.visguy.com/category/development/
Forum: http://www.viguy.com/vgforum
 
M

Marx

Thanks guys. The Characters object is helpful. A backColor property in
CharProps would have been good to highlight the relevant text.

I appreciate the tips.
 

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