Object position on subgraph


I am using GoDiagram for my application.

I have one documented opened and multiple GoSubgraph objects added.

Then i want to add GoGeneralNode objects to each Subgraph.

When ever i sent GoGeneralNode object position it is setting relative to document.

I want to set position to relative to SubGraph.

Can please suggest how i can do this?



Get the Location of the Subgraph, and add your offset.