在 Microsoft Visio 中的用例中自动换行文本
我正在制作一个用例图,问题是:
我输入一些文本,它总是显示在一行中,使我的用例椭圆太大。有谁知道如何让它转到下一行?我认为这个选项在 StarUML 中称为换行文本...
提前谢谢您!
纳内克
I am making a use case diagram, and the problem is:
I type some text and it is always display in one line, making my use case elipse too big. Does anyone know how to make it go to the next line? I think this option is called wrap text in StarUML...
Thank you in advance!
Nanek
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(10)
0
。现在按 F2 并编辑名称。使用 Enter 添加换行符。
单独取消对每个用例的保护是很乏味的。如果您要开始一个新图表,您可能希望取消对一个用例的保护并复制它,而不是从调色板添加新用例。
在用例名称中添加换行符的缺点是,当您修改其属性时,名称会被截断为第一个换行符。幸运的是,除了名称和文档之外,用例没有太多有用的属性。
0
.Now press F2 and edit the name. Add line breaks with Enter.
It is tedious to unprotect each use case individually. If you are starting a new diagram, you may want to unprotect one use case and copy it instead of adding new use cases from the palette.
The downside of adding line breaks to the name of use case is that when you modify its properties, the name truncates to the first line break. Luckily, use cases do not have much useful properties other than name and documentation.
当您想要编辑形状时,您需要解锁应用于形状的保护属性。这里的答案都没有告诉您如何显示“形状数据”。
When you wish to edit a shape, you need to unlock the protection attributes applied on the shape. None of the answers here have informed you how to show the "Shape Data".
应用自动换行的过程:
从图表区域中选择要应用自动换行的元素。
右键单击并选择[格式]-> [自动换行名称] 菜单。
再次执行上述步骤即可删除自动换行。
Procedure for applying Word Wrap:
Select from the diagram area an element for which to apply Word Wrap.
Right-click and select the [Format] -> [Word Wrap Name] menu.
Perform the steps above once again to removed Word Wrap.
首先通过以下方式取消对文本的保护:
右键单击用例并选择“格式”,然后选择“保护”,取消选中“文本”
下一步,再次选择用例
然后按“F2”键
现在您可以输入文本了。按“Enter”键编辑多行
享受
First remove the protection on the Text by:
right click the use case and select "Format" then "Protection", uncheck "Text"
Next, select the use case again
then press the key "F2"
and now you can enter your text. press the key "Enter" to edit more than one line
Enjoy
真实文本换行;没有该死的回车符。
Visio 2010。
SysML Stencil(来源未知)“活动图”形状集合中的“活动”形状。
文件 >选项>自定义功能区> [在“主选项卡”列表中选择“开发人员”]
文本转换> TxtWidth
Char.Size,TEXTWIDTH(TheText)) 到 '=MIN(Width-0.08,MAX(Char.Size,TEXTWIDTH(TheText)))'
这里的神奇之处在于减量器 -0.08。如果没有它,我无法使形状变得更小,因为公式不允许文本宽度小于形状宽度,并且形状宽度似乎自动将自身限制为至少文本宽度。乐趣。您可能会发现您需要一个更大的减量器,或者您可以使用更好的减量器。
如果可以的话,将所做更改的形状保存到模具中。
这是我用来在所有“Action”块中应用公式更改的快速/肮脏的 VBA:
End Sub
Real text wrap; no bloody carriage returns.
Visio 2010.
SysML Stencil (source unknown) 'Activity' shape in 'Activity Diagram' shapes collection.
File > Options > Customize Ribbon > [Select 'Developer' in 'Main Tabs' list]
Text Transform > TxtWidth
The magic here is the decrementer -0.08. Without it, I couldn't make the shape any smaller because the formula would not allow the text width to be smaller than the shape width, and the shape width appeared to automatically limit itself to, at minimum, the text width. Fun. You may find you need a larger decrementer or that you can get away with a finer one.
Save the shape to which you've made this change into the stencil if you can.
Here is the quick/dirty VBA I used to apply the formula change across all the 'Action' blocks:
End Sub
我发现通过在单词之间添加额外的空格,我可以让 Visio 将文本换行。我必须添加足够的空格,以便将单词推到用例文本框的边缘之外。有时这会导致两个不同单词之间出现换行,因此我必须在用例名称的其他位置添加额外的空格。
这确实会导致用例在 Visio 的模型资源管理器任务窗口中显示得很奇怪,但这并没有困扰我。
I found that by putting extra spaces in between the words I could get Visio to wrap the text. I had to add enough spaces so that it would push a word beyond the margin of the use case's textbox. Sometimes this would cause a line break between two different words, so I had to add additional spaces elsewhere in the use case name.
This does cause the use cases to be displayed oddly in Visio's Model Explorer task window but this didn't bother me.
尝试在对象属性对话框中编辑文本框属性。
Try editing the TextBox properties in the object properties dialog.
选择形状。
使用此菜单:[主页] -> [工具]-> [文本]
现在可以在形状上进行文本编辑。
现在,只需在要结束行的每个位置按 Shift+Enter,即可手动换行。
祝你好运
Select the shape.
use this menu: [Home] -> [Tools] -> [Text]
now text editing is available on the shape.
Now by just hitting shift+enter on every place you want to end the line, you can wrap text manually.
Good Luck
单击文本框,然后在下一行所需的文本之间按 Enter 键。
click into the text box and hit enter between the text you want on the next line.
在 Microsoft Visio 2007 中,首先您需要选择形状,右键单击它并选择“格式”,然后选择“保护...”并取消选中“文本”复选框,单击“确定”。这将允许编辑形状文本。
完成后,您可以选择用例形状,从标准工具栏中选择“文本工具”。用例文本将显示为文本框。您可以根据需要按回车键,然后单击“指针工具”即可完成操作。
In Microsoft Visio 2007 first you need to select your shape, right click it and choose "Format", then "Protection..." and uncheck "Text" checkbox, click OK. This will allow to edit shape text.
When that is done you can select your use case shape, choose "Text Tool" from standard toolbar. Use case text will appear as text box. You can hit enter where necessary and then click "Pointer Tool" to complete operation.