Hi starman,
I imagine that this could be done with the methods GetFormat() and SetFormat(),
like in this examples:
http://ocwiki.originlab.com/index.php?title=OriginC:OriginObject-GetFormat
but I didnt find the right property in the Format-Tree... ;-/
I created two Vector Graphs (XYAM). In one of them I activated the property: Clip Data To Frame
Then I stored each Format-Tree in xml-file:
void view_layer_properties_ex1()
{
Page pg;
GraphLayer gl;
Tree tr;
string strFileName;
foreach (PageBase pb in Project.Pages)
{
pg = pb;
if(!pg)
continue;
gl = pg.Layers();
if(!gl)
continue;
strFileName.Format("C:\\XML\\%s.xml", pg.GetName() );
tr = gl.GetFormat(FPB_ALL, FOB_ALL, true, true);
tr.Save(strFileName);
}
}
I wrote a short C++ program to compare the two xml-files. But it found no difference.
But when I switch "show labels" on/off (checkbox) in one of the GraphPages,
which stands on the same tab ( plotdetails-->Display ), my program finds the difference in the Format-Tree.
So my program works, but couldnt find the property that you want to set via program control... sorry ;-/
I hope someone else knows where to find this property??
|-- TreeNode
...|-- a??
...|-- ha!!