Russel,
you don't need the section object for getting/setting a cell value. You do
that directly on the shape, as shown in the news contribution I mentioned
previously. Here are the two rows again:
// set custom property label (_index = row number)
vShape.get_CellsSRC( (short) VisSectionIndices.visSectionProp, (short)
((short) VisRowIndices.visRowProp + _index), (short)
VisCellIndices.visCustPropsLabel ).Formula = newLabel;
// set custom property value (_index = row number)
vShape.get_CellsSRC( (short) VisSectionIndices.visSectionProp, (short)
((short) VisRowIndices.visRowProp + _index), (short)
VisCellIndices.visCustPropsValue ).Formula = newValue;
If you just want to get (not set) the cell values, just modify the lines
above as follows:
// get custom property label (_index = row number)
string _label = vShape.get_CellsSRC( (short)
VisSectionIndices.visSectionProp, (short)
((short) VisRowIndices.visRowProp + _index), (short)
VisCellIndices.visCustPropsLabel ).Formula;
// get custom property value (_index = row number)
string _value = vShape.get_CellsSRC( (short)
VisSectionIndices.visSectionProp, (short)
((short) VisRowIndices.visRowProp + _index), (short)
VisCellIndices.visCustPropsValue ).Formula;
Best regards,
Markus