Find a custom property by its label and not its name

S

sofianebou

Hi,

I am working with c# and visio references.
I would like to read a custom property. But, instead of finding it by
its name (Prop.Rowname) and after read the cells (value..), i would
like to find a custom property by its label and after access to other
cells of the custom property.
Can i do that?

I red a lot of examples but i don't know how to proceed.

Thank you for any help.
 
D

David Parker

Generaly, in code, it is more efficient to read cells using their row number
after you have read it using the row name or label.

If you are using ShapeSheet formula, then you must use the row name, e.g
Prop.MyRow. Unfortunately, you cannot use the Define Properties dialog to
enter these fomula, so you must use the ShapeSheet.
Let's say if you have a a custom property called Rate, one calld Days, and
another called Total, then the formula in the Value cell of Prop.Total would
be =Prop.Rate*Prop.Days. If you don't want the Total to be editable, then
use the formula, =Guard(Prop.Rate*Prop.Days).
By the way, it is good practice to name the rows, rather than leaving them
as the default Row_1, Row_2, etc.
It is useful to switch on Developer mode on Tools/Options/Advanced.
 

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