WinForms 的免费或开源图表组件 [英] Free or Open Source Diagramming Component for WinForms
问题描述
我需要能够以编程方式生成依赖关系图.我希望它能够生成一堆带有标签和连接器的盒子,理想情况下,组件会自动将它们定位到设计图面上,然后可以手动重新排列.
I need to be able to generate dependency diagrams programmatically. I'd like it to be able to generate a bunch of boxes with labels and connectors linking them, and ideally the component would position them automatically onto a design surface which could then be manually rearranged.
我使用的是 WinForms 和 C# 2.0 (VS2005).
I'm using WinForms and C# 2.0 (VS2005).
但是,由于它将是一个内部工具,如果在该领域有任何建议,我可能可以使用 3.5 SP1 和 WPF.
However, since it'll be an internal tool, I can probably use 3.5 SP1 and WPF if there any suggestions in that arena.
必须是免费的或开源的.
Must be free or open source.
有什么建议吗?
推荐答案
你可能想看看 GraphViz 这是在 CPL 下分发的(即免费).它并不完全适用于 .NET/WinForms,但无论如何都可能有用.该库的主要目的是可视化图形(依赖图实际上是一个 [方向] 图).您可以使用它来获取图像(图形布局)或点数组(您项目的坐标).
You might want to take a look at GraphViz which is being distributed under CPL (i.e. free of charge). It is not exactly for .NET/WinForms but can be useful anyway. The library's main purpose is to visualize graphs (and dependency diagram is effectively a [directional] graph). You can use it to either get an image (graph layout) or an array of points (coordinates for you items).
这篇关于WinForms 的免费或开源图表组件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!