如何在Visio中创建Visual Studio风格的类图?

发布于 2024-08-20 23:35:46 字数 822 浏览 13 评论 0原文

我需要规划一个 ClassMethodAttribute 样式图,我已经查看了 Class Designer Visual Studio,但它似乎没有达到我想要的效果。 我希望能够有一个图表显示类,就像在 Visual Studio 中一样 - 除了我希望能够表示这些方法所需的参数,例如:

getStock(StockID)

这将在图表中显示。这是针对 ASP.NET 网站 - 为这样的网站创建图表来表示方法的最佳方法是什么 - 我不想开始生成类 - 这就是我想要的原因使用 Visio,而且我对 VisioVisual 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

难得心□动 2024-08-27 23:35:46

Visual Studio 2010 Ultimate 支持 UML 类图,除非您愿意,否则它不会生成代码:

alt text

以下是参考主题:UML 类图:参考

我已经在 我的个人资料了解更多信息。

Visual Studio 2010 Ultimate supports UML class diagrams, which will not generate code unless you want to:

alt text

Here's the reference topic: UML Class Diagrams: Reference

I've posted more links on my profile for more info.

难理解 2024-08-27 23:35:46

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文