VwaShape.getComments Method

Applies to: apps for SharePoint | SharePoint Server 2013

Returns an array of anonymous objects, each of which specifies a comment that is associated with the shape.

var value = VwaShape.getComments()

Return value

Object[] An array of anonymous objects, each of which specifies a comment that is associated with the shape.

If there are no comments associated with the shape, the method returns an empty array.

Remarks

Each anonymous object in the array that is returned has the following properties:

Author A string that specifies the name of the author of the comment.

Date A string that specifies the date that the comment was made.

Value A string that contains the comment text.

For more information about how to add a Visio Web Access Web Part to a SharePoint Web Parts page, see Customizing Visio Web Drawings in the Visio Web Access Web Part.