I wrote a library that simplifies
To get properties for multiple shapes:
var shapes = new[] {s1, s2}; var props = VA.CustomProperties.CustomPropertyHelper.GetCustomProperties(page, shapes);
The return value stored in the details will be a list of dictionaries. Each dictionary corresponds to the properties of the indicated figures. Property names are keys in the dictionary.
To get the "Foo" property for the first form ...
props[0]["Foo"]
which retrieves an object that contains the Formulas and results for these aspects of the property:
- The calendar
- Format
- Invisible
- Label
- LANGID
- Tell me
- Sortkey
- A type
- Value
- Make sure
source share