API Reference
VisioCommentExtensions
Editing helpers for native Visio comments.
Inheritance
- Object
- VisioCommentExtensions
Methods
public static VisioComment AddComment(VisioPage page, String text, String authorName = null, String authorInitials = null, VisioCommentOptions options = null) #VisioCommentAdds a page-level native Visio comment.
Parameters
- page OfficeIMO.Visio.VisioPage
- text System.String
- authorName System.String = null
- authorInitials System.String = null
- options OfficeIMO.Visio.VisioCommentOptions = null
public static VisioComment AddComment(VisioPage page, VisioShape target, String text, String authorName = null, String authorInitials = null, VisioCommentOptions options = null) #VisioCommentAdds a native Visio comment to a shape on the page.
Parameters
- page OfficeIMO.Visio.VisioPage
- target OfficeIMO.Visio.VisioShape
- text System.String
- authorName System.String = null
- authorInitials System.String = null
- options OfficeIMO.Visio.VisioCommentOptions = null
public static VisioComment AddCommentToShape(VisioPage page, String shapeId, String text, String authorName = null, String authorInitials = null, VisioCommentOptions options = null) #VisioCommentAdds a native Visio comment to a shape or connector by identifier.
Parameters
- page OfficeIMO.Visio.VisioPage
- shapeId System.String
- text System.String
- authorName System.String = null
- authorInitials System.String = null
- options OfficeIMO.Visio.VisioCommentOptions = null
public static IReadOnlyList<VisioComment> CommentsForShape(VisioPage page, String shapeId) #IReadOnlyList<VisioComment>Returns comments that target the provided shape.
Parameters
- page OfficeIMO.Visio.VisioPage
- target OfficeIMO.Visio.VisioShape
CommentsForShape(OfficeIMO.Visio.VisioPage page, System.String shapeId) #Returns comments that target the provided shape or connector identifier.
Parameters
- page OfficeIMO.Visio.VisioPage
- shapeId System.String
public static VisioComment FindComment(VisioPage page, Int32 commentId) #VisioCommentFinds a native Visio comment by its page-scoped identifier.
Parameters
- page OfficeIMO.Visio.VisioPage
- commentId System.Int32
public static Boolean RemoveComment(VisioPage page, Int32 commentId) #BooleanRemoves a native Visio comment from the page.
Parameters
- page OfficeIMO.Visio.VisioPage
- comment OfficeIMO.Visio.VisioComment
RemoveComment(OfficeIMO.Visio.VisioPage page, System.Int32 commentId) #Removes a native Visio comment by its page-scoped identifier.
Parameters
- page OfficeIMO.Visio.VisioPage
- commentId System.Int32
public static Int32 RemoveCommentsForShape(VisioPage page, String shapeId) #Int32Removes all native Visio comments targeting a shape or connector identifier.
Parameters
- page OfficeIMO.Visio.VisioPage
- shapeId System.String
public static VisioComment ReopenComment(VisioPage page, Int32 commentId, Nullable<DateTimeOffset> editedAt = null) #VisioCommentReopens a native Visio comment by its page-scoped identifier.
Parameters
- page OfficeIMO.Visio.VisioPage
- commentId System.Int32
- editedAt System.Nullable{System.DateTimeOffset} = null
public static VisioComment ResolveComment(VisioPage page, Int32 commentId, Nullable<DateTimeOffset> editedAt = null) #VisioCommentMarks a native Visio comment as done by its page-scoped identifier.
Parameters
- page OfficeIMO.Visio.VisioPage
- commentId System.Int32
- editedAt System.Nullable{System.DateTimeOffset} = null
public static IReadOnlyList<VisioComment> ResolvedComments(VisioPage page) #IReadOnlyList<VisioComment>Returns native Visio comments that are marked as done.
Parameters
- page OfficeIMO.Visio.VisioPage
public static IReadOnlyList<VisioComment> UnresolvedComments(VisioPage page) #IReadOnlyList<VisioComment>Returns native Visio comments that are not marked as done.
Parameters
- page OfficeIMO.Visio.VisioPage
public static VisioComment UpdateCommentText(VisioPage page, Int32 commentId, String text, Nullable<DateTimeOffset> editedAt = null) #VisioCommentUpdates a native Visio comment's text by its page-scoped identifier.
Parameters
- page OfficeIMO.Visio.VisioPage
- commentId System.Int32
- text System.String
- editedAt System.Nullable{System.DateTimeOffset} = null
Inherited Methods
public override Boolean Equals(Object obj) #BooleanParameters
- obj Object