Wrap text when used in Microsoft Visio

I am making a usage chart and the problem is this:

I print the text and it always appears on one line, which makes my elipse use case too big. Does anyone know how to make it move to the next line? I think this parameter is called wrap text in StarUML ...

Thank you in advance!

Nanek

+7
source share
10 answers

In Microsoft Visio 2007, first you need to select your shape, right-click and select "Format", then "Protection ..." and uncheck the "Text" box, click "OK." This will allow you to edit the form text. When this is done, you can choose the form of your use, select the "Text tool" from the standard toolbar. The text of the usage example will be displayed as a text field. You can press Enter, if necessary, and then press the "Pointer Tool" to complete the operation.

+4
source

How to use Word Wrap:

  • Select the element for which you want to apply Word Wrap from the chart area.

  • Right-click and select the [Format] menu β†’ [Word Wrap Name].

Follow the steps above to uninstall Word Wrap.

+2
source
  • Right-click a use case.
  • Select Show Form Sheet.
  • Scroll down to the Protection section.
  • Change the value next to "LockTextEdit" to 0 .
  • Close the form.

Now press F2 and edit the name. Add line breaks with Enter .

It is enough to drown each use case separately. If you are starting a new chart, you can remove protection from one use case and copy it instead of adding new palettes from the palette.

The disadvantage of adding line breaks to the name of a use case is that when you change its properties, the name is truncated before the first line break. Fortunately, use cases do not have many useful properties besides the name and documentation.

+2
source

I found that by adding extra spaces between words, I could make Visio wrap the text. I had to add enough space to push the word outside the case input field. Sometimes this can lead to line breaks between two different words, so I had to add extra spaces elsewhere in the usage name.

This causes the use cases to appear weird in the Visio Model Explorer task window, but that didn't bother me.

+1
source

First remove the protection in the text: right-click the use case and select "Format", then "Protection", uncheck the "Text"

Next, select the use case again, then press the "F2" key, and now you can enter your text. press enter to edit multiple lines Enjoy

+1
source

If you want to edit a shape, you need to unlock the security attributes that apply to the shape. None of the answers here have told you how to display "Form Data."

  • You need to select the β€œFile” menu at the top. Select "Options" and select "Advanced."
  • Scroll down to the end and select "Run in developer mode." Click OK.
  • Select "Main Menu" at the top to return to the chart.
  • Right click on your shape (let's say you are editing the Use Form form)
  • Select the "Show ShapeSheet" option.
  • You will see a window under the chart window. In this window, scroll down the page until you see the "Protection" settings.
  • Select the "LockTextEdit" variable and double-click it and change from 1 to 0. Press "Enter" to save your preferences.
  • Now click on the shape and select "Text" in the format menu.
  • Click on the text and you can edit it. Press the enter key between the text where you need to insert a line break.
+1
source

Try editing the TextBox properties in the object's properties dialog box.

0
source

Select a shape. use this menu: [Home] β†’ [Tools] β†’ [Text] text editing is now available on the figure. Now, just by pressing shift + enter at every place you want to finish, you can wrap the text manually. Good luck

0
source

Real text wrapping; no bloody carriage.

Visio 2010. SysML Stencil (source unknown) The "Activity" form in the "Activity Diagram" shape collection.

  • If you don’t see the Developer tab on the ribbon:
    • File> Options> Customize Ribbon> [Select "Developer" in the "Main Tabs" list]
  • Right-click the form you are interested in and select "Show Form"
  • Find the width property of interest
    • Text Transform> TxtWidth
  • Change the formula in the TxtWidth property cell
  • from (something like) '= MAX (Char.Size, TEXTWIDTH (TheText))'
  • to '= MIN (Width-0.08, MAX (Char.Size, TEXTWIDTH (TheText)))
Enjoy it.

The magic here is decrement -0.08. Without this, I could not have made the figure smaller, because the formula would not allow the width of the text to be less than the width of the form, and the width of the form would automatically limit the width of the text to at least the width. Fun. You may find that you need a larger decrement or you can leave with a thinner one.

Save the form in which you made this change to the stencil, if you can.

Here is the quick / dirty VBA that I used to apply the formula to all the "Action" blocks:

 Public Sub ApplyWrapTextPropertyToAllActionBlocks() Const STR_ACTION_BLOCK_NAME As String = "Action with Wrap Text." Const STR_DECREMENTER As String = "-0.08" Dim objShape As Shape Dim objActionBlock As Shape For Each objShape In ActivePage.Shapes If InStr(1, objShape.Name, STR_ACTION_BLOCK_NAME, vbBinaryCompare) <> 0 Then Debug.Print "Found one: " & objShape.Name Set objActionBlock = objShape objActionBlock.CellsU("TxtWidth").Formula = "=MIN(Width" & STR_DECREMENTER & ",MAX(Char.Size,TEXTWIDTH(TheText)))" End If Next objShape 

End Sub

0
source

click in the text box and press the enter key between the desired text on the next line.

-one
source

All Articles