Validation functions
The syntax for the FilterExpression
and TestExpression
formulae are the same as for the ShapeSheet formulae. However, Visio 2013 includes some extra validation functions such as the ShapeSheet functions, but these functions cannot be used in the ShapeSheet formulae, with the exception of those marked with an asterisk.
The following table is an extract from The Diagram Validation API blog:
http://blogs.msdn.com/visio/archive/2010/01/07/the-diagram-validation-api.aspx
It lists the special quasi-ShapeSheet functions that can be used in the FilterExpression
and TestExpression
formulae, and has been extended to include the new functions added in Visio 2013 (marked with *
).
Function |
Description |
---|---|
|
Returns a Boolean indicating whether the shape has the specified category. |
|
Returns a Boolean indicating whether the shape is 1D or not. |
|
Returns an integer indicating the shape role: {Element = 0, Connector = 1, Container = 2, Callout... |