To read custom property

A

Alexandra

Hello,

I develop Office COM Add-in for VISIO in C# .NET. In order to get
and set custom property of the shape programmatically I use
CustomPropertyRead class from Microsoft office visio 2003 SDK (Code Librarian
Viewer).
For getting the custom property value I use function
ReadANamedCustomProperty from SDK.

Sometimes for the shapes which contain custom property with particular
name this function displays the message that property name was not found.
But when I look at custom properties I see the property with this name on
this shape.
I get the results as if the cell doesn't exist.

customPropertyShape.get_CellExists(propName
short)Microsoft.Office.Interop.Visio.VisExistsFlags.
(
and Returns 0 visExistsAnywhere)

customPropertyShape.get_CellExistsU(propName
short)Microsoft.Office.Interop.Visio.VisExistsFlags.
(
Returns 0 visExistsAnywhere)

I don't understand why it happens. Has anybody idea how to overcome
this problem?

Thank you in advance.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top