I’m tryng to position a couple of additional GoText object to the right of my icon on a variation of the GoIconicNode. As shown in the rough sketch below!
GoIconicNode.LayoutChildren does not know about any GoObjects that you add as extra children of the node, so it does not position or size them in any way.
You might want to override LayoutChildren so that it calls the base method and then positions your extra labels the way you want.
But you don’t even have to do that if you don’t expect the Icon to change size.
This worked for me (with just one extra label):
GoIconicNode in2 = new GoIconicNode();
in2.Initialize(null, "doc.gif", "a node");
in2.Icon.Size = new SizeF(32, 32);
GoText lab1 = new GoText();
lab1.Selectable = false;
lab1.Text = "label 1";
lab1.SetSpotLocation(GoObject.MiddleLeft, in2.Icon, GoObject.MiddleRight);
in2.Position = new PointF(300, 400);