text centered within text box

B

Brucer

I need to have the text box (handles) adjust to the exact size of the text
string. I need to place the text exactly without any dead space between the
character and text box handle. I have changed several paragraph settings,
but I can't seem to get the handles to line up even with the edge of the
character.

I appreciate any and all help.
 
C

Chris Roth [Visio MVP]

Hi Bruce,

First, set the text margins to 0. Do this under Format > Text > Text
Block tab.

Then, go to the ShapeSheet (Window > Show ShapeSheet)

In the Width cell at the top, enter this formula:

Width = GUARD(TextWidth(TheText))

Your box will size to exactly the text-contents.

--
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
 

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