microsoft / automatic-graph-layout

A set of tools for graph layout and viewing
Other
1.35k stars 302 forks source link

Is it possible to hide and unhide the lable for a subgraph? #276

Open bochelie1000 opened 3 years ago

bochelie1000 commented 3 years ago

Sometimes it is handy to be able to hide and unhide the label for a subgrahp. Can this be implemented?

levnach commented 3 years ago

I think the answer is yes:-)

Brains commented 2 years ago

No matter what I do, labels are not visible for Subgraph in WpfApplicationSample and my project as well

image

var subgraph = new Subgraph("subgraph1");
subgraph.Label.Text = "adwfaf";
subgraph.LabelText = "efwgwef";
subgraph.Attr.LabelWidthToHeightRatio = 2;
subgraph.Attr.LabelMargin = 2;

var subgraph2 = new Subgraph("subgraph2");
subgraph2.Label.Text = "WFEWFWG";
subgraph2.Label.IsVisible = true;
subgraph2.Label.FontSize = 30;
subgraph2.Label.FontColor = Color.Black;
subgraph2.Label.FontStyle = FontStyle.Bold;

What I've missed?

levnach commented 2 years ago

Sorry, it is not implemented.

Brains commented 2 years ago

Ok. Thanks for info.