private void goView_LinkCreated(object sender, Northwoods.Go.GoSelectionEventArgs e) { GoLink link = e.GoObject as GoLink; if (link != null) { Color c = Color.Black; link.PenColor = c; link.PenWidth = 2; link.BrushColor = c; } }
// When a link is drawn by the user, give it a random color private void goView1_LinkCreated(object sender, Northwoods.Go.GoSelectionEventArgs e) { initListView("1.2"); var res = goView1.Document; GoLink link = e.GoObject as GoLink; if (link != null) { Color c = GetRandomColor(100); link.PenColor = c; link.PenWidth = 2; link.BrushColor = c; } }