SelectionObject for subgraph


When my subgraph is resizable, the selection handles are set on the graph rectangle.

When it is not, the selection graph is around the whole subgraph, including label. Is there a way to have it only on the rectangle too ?

Thank you,

Have you overridden LayoutLabel to position the label outside of the rectangle returned by GoSubGraph.ComputeBorder? Because normally the bounding selection handle goes around the border, just as the resize selection handles do.
You can override CreateBoundingHandle() to call the base method and then adjust the Bounds of the returned GoHandle to be whatever you want.

Yes, the label is outside of the rectangle. I’ll have a look at CreateBoundingHandle. Thank you once more.