Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
这是一个带有 MSAGL 的 C# 中的 winform 应用程序。我正在尝试将灰色区域的颜色更改为白色,并更改节点的字体样式,我应该如何设置它们?
您可以OutsideAreaBrush在表单的加载事件中将查看器的属性设置为所需的画笔,例如:
OutsideAreaBrush
this.gViewer.OutsideAreaBrush = Brushes.White;