API Reference

Class

VisioComment

Namespace OfficeIMO.Visio
Assembly OfficeIMO.Visio
Modifiers sealed

Represents a native Visio comment stored in the document comments part.

Inheritance

  • Object
  • VisioComment

Usage

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Accepted by parameters

Constructors

public VisioComment(String text) #

Initializes a new comment with the current UTC creation time.

Parameters

text System.String requiredposition: 0
Comment text.

Methods

public Void Reopen(Nullable<DateTimeOffset> editedAt = null) #
Returns: Void

Reopens a resolved comment and records the edit timestamp.

Parameters

editedAt System.Nullable{System.DateTimeOffset} = null optionalposition: 0
Optional edit timestamp. Uses current UTC time when not provided.
public Void Resolve(Nullable<DateTimeOffset> editedAt = null) #
Returns: Void

Marks the comment as done and records the edit timestamp.

Parameters

editedAt System.Nullable{System.DateTimeOffset} = null optionalposition: 0
Optional edit timestamp. Uses current UTC time when not provided.
public Void UpdateText(String text, Nullable<DateTimeOffset> editedAt = null) #
Returns: Void

Updates the comment text and records the edit timestamp.

Parameters

text System.String requiredposition: 0
New comment text.
editedAt System.Nullable{System.DateTimeOffset} = null optionalposition: 1
Optional edit timestamp. Uses current UTC time when not provided.

Properties

public Int32 Id { get; 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 Nullable<DateTimeOffset> EditedAt { get; set; } #

Gets or sets when the comment was last edited.

public Boolean Done { get; set; } #

Gets or sets whether the comment is marked as done.

public Nullable<Int32> AutoCommentType { get; set; } #

Gets or sets the native AutoCommentType value. Visio ignores this value, but it is preserved when present.