Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

VisioComment

OfficeIMO.Visio

Namespace
OfficeIMO.Visio
Assembly
OfficeIMO.Visio
Source revision
e163ccb36643 with working tree changes
Modifiers
sealed

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.

Accepted by parameters 4

Constructors

public VisioComment(string text) #

Initializes a new comment with the current UTC creation time.

Parameters

text string required
Comment text.

Methods

public void Reopen(DateTimeOffset? editedAt = null) #

Reopens a resolved comment and records the edit timestamp.

Parameters

editedAt System.DateTimeOffset? = null optional
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
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 required
public void UpdateText(string text, DateTimeOffset? editedAt = null) #

Updates the comment text and records the edit timestamp.

Parameters

text string required
New comment text.
editedAt System.DateTimeOffset? = null optional
Optional edit timestamp. Uses current UTC time when not provided.

Properties

public int Id { get; internal set; } #

Gets the comment identifier, unique within its page once attached to a page.

public string Text { get; set; } #

Gets or sets the plain text comment content.

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.