Positioning of label with top left margin subgraph


I have a customized subgraph class with a label. I want label to be at the top middle position of Subgraph. But I need to have TopLeftMargin of Subgraph set to some non-zero size. But once I set this margin, label is coming down and margin is moved to top of the label. But I want label to remain at the same very close to subgraph top margin. Could you suggest on how to achive this.
Thanks and Best Regards,

Have you overriden LayoutChildren in your subclass?


weird. I thought I replied to this earlier, but I don’t see it here…

It sounds like you want to override the GoSubGraph LayoutLabel method and position the label to suit (relative to some position of the parent subgraph). There's information on the method in the API reference.