Table of contents
TOC
Collapse the table of content
Expand the table of content

Viewer.CustomPropertyCount Property (Visio Viewer)

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

Gets the count of shape data items (custom properties) assigned to the specified shape in Microsoft Visio Viewer. Read-only.

Syntax

expression. CustomPropertyCount( ShapeIndex)

_expression_An expression that returns a Viewer object.

Parameters

NameRequired/OptionalData TypeDescription
ShapeIndexRequiredLongThe index of the shape that contains the shape data (custom properties).

Return Value

Long

Remarks

In versions of Visio prior to Microsoft Office Visio 2007, shape data items were called custom properties.

Example

The following code gets the count of shape data items assigned to the first shape in the collection of shapes on the current page in Visio Viewer.

Dim intShapeData As Integer

intShapeData = vsoViewer.CustomPropertyCount(1)

Debug.Print intShapeData

© 2018 Microsoft