Hello,
You can modify the row header width with Origin C by editting values in tree, and then apply format stored in tree to worksheet.
Please refer to this page for apply format.
http://www.originlab.com/doc/OriginC/ref/OriginObject-ApplyFormat
and refer to this page for how to view the tree structure for worksheet
http://www.originlab.com/doc/OriginC/guide/Accessing-Metadata#Get_Tree
http://www.originlab.com/doc/OriginC/examples/Accessing-Worksheet-Format-with-Theme-Tree
Here is the example:
void rhWidth(int nWidth)
{
Worksheet wks = Project.ActiveLayer();
Tree tr;
vector<int> vec;
vec.Add(nWidth); // add the row header width value into the vector
tr.Root.Grid.Dimensions.Horizontal.Size.nVals=vec; // asign values to the tree
wks.UpdateThemeIDs(tr.Root);
wks.ApplyFormat(tr, true, true); // Apply format stored in tree to worksheet
}
Best regards!
Jason
OriginLab Technical Service