VisioComment
OfficeIMO.Visio
Represents a native Visio comment stored in the document comments part.
Inheritance
- object
- VisioComment
Usage
Explore 29 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 25
- Method VisioCommentExtensions.AddComment
- Method VisioCommentExtensions.AddCommentToShape
- Method VisioCommentExtensions.CommentsByAuthor
- Method VisioCommentExtensions.CommentsForShape
- Method VisioCommentExtensions.FindComment
- Method VisioCommentExtensions.ReopenComment
- Method VisioCommentExtensions.ReplyToComment
- Method VisioCommentExtensions.ResolveComment
- Method VisioCommentExtensions.ResolvedComments
- Method VisioCommentExtensions.UnresolvedComments
- Method VisioCommentExtensions.UpdateCommentText
- Property VisioCommentThread.Comments
- Property VisioCommentThread.Root
- Extension method VisioPage.AddComment
- Extension method VisioPage.AddCommentToShape
- Extension method VisioPage.CommentsByAuthor
- Extension method VisioPage.CommentsForShape
- Extension method VisioPage.FindComment
- Extension method VisioPage.ReopenComment
- Extension method VisioPage.ReplyToComment
- Extension method VisioPage.ResolveComment
- Extension method VisioPage.ResolvedComments
- Extension method VisioPage.UnresolvedComments
- Extension method VisioPage.UpdateCommentText
- Property VisioPage.Comments
Accepted by parameters 4
- Method VisioFluentPage.Comments
- Method VisioFluentPage.ShapeComments
- Method VisioCommentExtensions.RemoveComment
- Extension method VisioPage.RemoveComment
Constructors
public VisioComment(string text) #Initializes a new comment with the current UTC creation time.
Parameters
- text string
- Comment text.
Methods
public void Reopen(DateTimeOffset? editedAt = null) #Reopens a resolved comment and records the edit timestamp.
Parameters
- editedAt System.DateTimeOffset? = null
- Optional edit timestamp. Uses current UTC time when not provided.
public void Resolve(DateTimeOffset? editedAt = null) #Marks the comment as done and records the edit timestamp.
Parameters
- editedAt System.DateTimeOffset? = null
- Optional edit timestamp. Uses current UTC time when not provided.
public void SetAuthor(VisioCommentAuthor author) #Changes all author identity fields together.
Parameters
- author OfficeIMO.Visio.VisioCommentAuthor
public void UpdateText(string text, DateTimeOffset? editedAt = null) #Updates the comment text and records the edit timestamp.
Parameters
- text string
- New comment text.
- editedAt System.DateTimeOffset? = null
- Optional edit timestamp. Uses current UTC time when not provided.
Inherited Methods
Properties
public int Id { get; internal set; } #Gets the comment identifier, unique within its page once attached to a page.
public string? AuthorName { get; set; } #Gets or sets the display name of the comment author.
public string? AuthorInitials { get; set; } #Gets or sets the author initials shown by Visio.
public string? AuthorResolutionId { get; set; } #Gets or sets the optional Visio author resolution identifier.
public string? ShapeId { get; set; } #Gets or sets the semantic shape or connector identifier this comment targets. When null, the comment applies to the page.
public DateTimeOffset CreatedAt { get; set; } #Gets or sets when the comment was created.
public DateTimeOffset? EditedAt { get; set; } #Gets or sets when the comment was last edited.
public bool Done { get; set; } #Gets or sets whether the comment is marked as done.
public int? AutoCommentType { get; set; } #Gets or sets the native AutoCommentType value. Visio ignores this value, but it is preserved when present.
public string? ThreadId { get; set; } #Gets or sets the stable OfficeIMO thread identifier. Native Visio comment fields remain intact; this value is stored as preservation-safe extension metadata.
public int? ParentCommentId { get; set; } #Gets or sets the parent native comment identifier for a reply.
public bool IsReply { get; } #Gets whether this comment is a reply in an OfficeIMO thread projection.