VisioCommentExtensions
OfficeIMO.Visio
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) #Adds a page-level native Visio comment.
Parameters
- page OfficeIMO.Visio.VisioPage
- text string
- authorName string? = null
- authorInitials string? = null
- options OfficeIMO.Visio.VisioCommentOptions? = null
Returns
VisioCommentpublic static VisioComment AddComment(VisioPage page, VisioShape target, string text, string? authorName = null, string? authorInitials = null, VisioCommentOptions? options = null) #Adds a native Visio comment to a shape on the page.
Parameters
- page OfficeIMO.Visio.VisioPage
- target OfficeIMO.Visio.VisioShape
- text string
- authorName string? = null
- authorInitials string? = null
- options OfficeIMO.Visio.VisioCommentOptions? = null
Returns
VisioCommentpublic static VisioComment AddCommentToShape(VisioPage page, string shapeId, string text, string? authorName = null, string? authorInitials = null, VisioCommentOptions? options = null) #Adds a native Visio comment to a shape or connector by identifier.
Parameters
- page OfficeIMO.Visio.VisioPage
- shapeId string
- text string
- authorName string? = null
- authorInitials string? = null
- options OfficeIMO.Visio.VisioCommentOptions? = null
Returns
VisioCommentpublic static IReadOnlyList<VisioComment> CommentsByAuthor(VisioPage page, VisioCommentAuthor author) #Returns comments written by one stable author identity.
Parameters
- page OfficeIMO.Visio.VisioPage
- author OfficeIMO.Visio.VisioCommentAuthor
Returns
IReadOnlyList<VisioComment>public static IReadOnlyList<VisioComment> CommentsForShape(VisioPage page, VisioShape target) #Returns comments that target the provided shape.
Parameters
- page OfficeIMO.Visio.VisioPage
- target OfficeIMO.Visio.VisioShape
Returns
IReadOnlyList<VisioComment>public static IReadOnlyList<VisioComment> CommentsForShape(VisioPage page, string shapeId) #Returns comments that target the provided shape or connector identifier.
Parameters
- page OfficeIMO.Visio.VisioPage
- shapeId string
Returns
IReadOnlyList<VisioComment>public static VisioComment? FindComment(VisioPage page, int commentId) #Finds a native Visio comment by its page-scoped identifier.
Parameters
- page OfficeIMO.Visio.VisioPage
- commentId int
Returns
VisioComment?public static IReadOnlyList<VisioCommentThread> GetCommentThreads(VisioPage page) #Returns deterministic root-and-reply thread projections.
Parameters
- page OfficeIMO.Visio.VisioPage
Returns
IReadOnlyList<VisioCommentThread>public static bool RemoveComment(VisioPage page, VisioComment comment) #Removes a native Visio comment from the page.
Parameters
- page OfficeIMO.Visio.VisioPage
- comment OfficeIMO.Visio.VisioComment
Returns
boolpublic static bool RemoveComment(VisioPage page, int commentId) #Removes a native Visio comment by its page-scoped identifier.
Parameters
- page OfficeIMO.Visio.VisioPage
- commentId int
Returns
boolpublic static int RemoveCommentsForShape(VisioPage page, string shapeId) #Removes all native Visio comments targeting a shape or connector identifier.
Parameters
- page OfficeIMO.Visio.VisioPage
- shapeId string
Returns
intpublic static VisioComment ReopenComment(VisioPage page, int commentId, DateTimeOffset? editedAt = null) #Reopens a native Visio comment by its page-scoped identifier.
Parameters
- page OfficeIMO.Visio.VisioPage
- commentId int
- editedAt System.DateTimeOffset? = null
Returns
VisioCommentpublic static VisioComment ReplyToComment(VisioPage page, int parentCommentId, string text, VisioCommentAuthor author, VisioCommentOptions? options = null) #Adds a native comment reply with stable thread metadata.
Parameters
- page OfficeIMO.Visio.VisioPage
- parentCommentId int
- text string
- author OfficeIMO.Visio.VisioCommentAuthor
- options OfficeIMO.Visio.VisioCommentOptions? = null
Returns
VisioCommentpublic static VisioComment ResolveComment(VisioPage page, int commentId, DateTimeOffset? editedAt = null) #Marks a native Visio comment as done by its page-scoped identifier.
Parameters
- page OfficeIMO.Visio.VisioPage
- commentId int
- editedAt System.DateTimeOffset? = null
Returns
VisioCommentpublic static IReadOnlyList<VisioComment> ResolvedComments(VisioPage page) #Returns native Visio comments that are marked as done.
Parameters
- page OfficeIMO.Visio.VisioPage
Returns
IReadOnlyList<VisioComment>public static IReadOnlyList<VisioComment> UnresolvedComments(VisioPage page) #Returns native Visio comments that are not marked as done.
Parameters
- page OfficeIMO.Visio.VisioPage
Returns
IReadOnlyList<VisioComment>public static VisioComment UpdateCommentText(VisioPage page, int commentId, string text, DateTimeOffset? editedAt = null) #Updates a native Visio comment's text by its page-scoped identifier.
Parameters
- page OfficeIMO.Visio.VisioPage
- commentId int
- text string
- editedAt System.DateTimeOffset? = null
Returns
VisioComment