如何在图形上添加标签

时间:2019-02-18 19:15:04

标签: graph label msagl

我正在尝试向MSAGL图形添加标签。它不显示。

该图正确构建了节点和边,但是未显示标签。我也没有办法定位标签。

Graph graph = new Microsoft.Msagl.Drawing.Graph("graph");
graph.Label = new Microsoft.Msagl.Drawing.Label("does not show");
graph.Label.Size = new Microsoft.Msagl.Core.DataStructures.Size(200, 200);
graph.Label.FontSize = 10;
graph.Label.IsVisible = true;
graph.Label.Owner = graph;

0 个答案:

没有答案
相关问题