I’m trying to add a Label to a subgraph. I have already override the LayoutHandle method so that the +/- sign ignores the node margin.
You can override LayoutLabel to do what you want. You can decide whether to depend on the results of ComputeInsideMargins or ComputeBorder.
This is what I’ve tried…
GoText gt = this.Label;
if (gt != null && gt.CanView())
RectangleF b = ComputeBorder();
gt.Position = new PointF(b.Location.X + 10, b.Location.Y);
ohh, ok - for those interested; this is how i solved it. Walter is correct as usual - override ComputeInsideMarginSkip() method. Here is my example.
GoText t = child as GoText;
if (t != null)