类图 [英] Class Diagrams
问题描述
你好
我将开始我的Bs.c最终项目,我正在尝试查看是否有可能创建一个类图 .
I'm about to start my Bs.c final project and i'm trying to see whether it is possible to create a class diagram programmatically.
Microsoft的类图绘图库是否有任何api?
Is there any api to Microsoft's class diagram drawing library?
推荐答案
>> 以编程方式
>>i'm trying to see whether it is possible to create a class diagram programmatically.
Just right click the project and then choose "Class Diagram", then drag and drop a class file (cs) into the file, the class diagram will be generated automatically.
What's more, maybe you can look at the generated codes from the "Class Diagram" with C#. I guess that should be an xml type. You can use XDocument or XmlDocument to cope with the problem.
这篇关于类图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!