Hi Marco,
hope the following example code helps.
Best regards,
Markus
-----.
IVShape vShape = ...;
IVSection vSection;
// create custom properties section, if not existent
if (vShape.get_SectionExists( (short) VisSectionIndices.visSectionProp, 1 )
== 0)
{
vShape.AddSection( (short) VisSectionIndices.visSectionProp );
}
// get custom property section
vSection = vShape.get_Section( (short) VisSectionIndices.visSectionProp );
// 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;