N
Neil
I am developing a module in C# to link to Visio. I am having problems getting
values from the ShapeSheet. I am trying to store some custom data in the
Custom Properties section of the shape sheet. I can add and view this through
both mechanisms that I am aware of in Visio (shape sheet window and the
custom properties dialog). However, I am unable to get the values via C#.
I am storing strings in the Custom Properties.
Given a specified Shape, I am trying the following:
Cell cell = shape.get_Cells("Prop.Model.Value");
string s = cell.get_ResultStr(0);
From the docs, the value 0 appears to be the correct way to get a string
value from a cell. However, this always returns me 0.0000. I have tried the
other values in the range from 1 to 255 and I always get a variant of 0.0.
I have defined this property in the Master for the Shape.
Can anyone help me access string values?
Neil
values from the ShapeSheet. I am trying to store some custom data in the
Custom Properties section of the shape sheet. I can add and view this through
both mechanisms that I am aware of in Visio (shape sheet window and the
custom properties dialog). However, I am unable to get the values via C#.
I am storing strings in the Custom Properties.
Given a specified Shape, I am trying the following:
Cell cell = shape.get_Cells("Prop.Model.Value");
string s = cell.get_ResultStr(0);
From the docs, the value 0 appears to be the correct way to get a string
value from a cell. However, this always returns me 0.0000. I have tried the
other values in the range from 1 to 255 and I always get a variant of 0.0.
I have defined this property in the Master for the Shape.
Can anyone help me access string values?
Neil