如何在Visio中创建Visual Studio风格的类图?
我需要规划一个 Class
、Method
、Attribute
样式图,我已经查看了 Class Designer
Visual Studio
,但它似乎没有达到我想要的效果。 我希望能够有一个图表显示类,就像在 Visual Studio 中一样 - 除了我希望能够表示这些方法所需的参数,例如:
getStock(StockID)
这将在图表中显示。这是针对 ASP.NET 网站 - 为这样的网站创建图表来表示方法的最佳方法是什么 - 我不想开始生成类 - 这就是我想要的原因使用 Visio
,而且我对 Visio
比 Visual Studio Class
设计器更熟悉,因为我主要使用 Express
> 不具备此功能的产品系列。
我想要这个 Default.aspx
为例:
Default.aspx
(View)
Methods:
- FeaturedStock()
- GetStock(StockID)
- ShowContent()
- ShowImage(StockID)
我不想使用 UML
因为这太混乱了 - Visual Studio Class
图接近我想要的,但我无法让它显示我的方法上的参数。
我的主要目标是为页面所需的每种方法提供“存根”,以作为开发人员实现该功能,这是我规划该项目的最简单方法。
I need to plan out a Class
, Method
, Attribute
style diagram, I have looked at the Class Designer
in Visual Studio
, but it seems to not do what I want.
I want to be able to have a diagram show the classes just like in Visual Studio
- except I want to be able to represent the parameters these methods require, for example:
getStock(StockID)
And this be shown in the Diagram. This is for an ASP.NET
website - what are the best ways of creating a diagram for a website like this to represent the methods - I don't want to start generating classes - which is why I want to use Visio
, plus I am more familiar with Visio
than the Visual Studio Class
designer as I mostly use the Express
line of products which don't feature this.
I want this for example for Default.aspx
:
Default.aspx
(View)
Methods:
- FeaturedStock()
- GetStock(StockID)
- ShowContent()
- ShowImage(StockID)
I don't want to use UML
as this is too confusing - the Visual Studio Class
diagram is close to what I want but I cannot get it to show the Parameters on my Methods.
My main aim is to have "stubs" for each method a page requires to implement that functionality as a Developer this is the easiest way I can plan out this project.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Visual Studio 2010 Ultimate 支持 UML 类图,除非您愿意,否则它不会生成代码:
以下是参考主题:UML 类图:参考
我已经在 我的个人资料了解更多信息。
Visual Studio 2010 Ultimate supports UML class diagrams, which will not generate code unless you want to:
Here's the reference topic: UML Class Diagrams: Reference
I've posted more links on my profile for more info.
NClass 我上次使用它时非常好。它是一个 UML 工具,但也是一个拖放式 GUI,一点也不混乱。另外,如果您愿意,它会生成代码;不过,您不必为此使用它。
NClass was quite good the last time I used it. It's a UML tool, but a drag and drop GUI and not at all confusing. Plus, it will generate code if you want it to; you don't have to use it for that though.