Graph properties

Is there a way to read out specific graph properties, e.g. the ones below:
....
ModifyGraph margin(left)=35,margin(bottom)=35,margin(top)=10,margin(right)=10;DelayUpdate
ModifyGraph width=525
...

instead of just setting them? I mean some command like 'getgraphproperties'...

I would like to write a macro to set the graph width depending on the margins that are already defined, so the overall window size has a specified size, e.g. 400pts = margins + width.

Thanks!
GetWindow pSize, pSizeDC, wSize, wSizeDC, etc.

--Jim Prouty
Software Engineer, WaveMetrics, Inc.