OfficeIMO

API Reference

Class

WordComment

Namespace OfficeIMO.Word
Assembly OfficeIMO.Word

A wrapper for Word document comments.

Inheritance

Methods

public WordComment AddReply(String author, String initials, String comment) #
Returns: WordComment

Creates a reply to this comment.

Parameters

author System.String requiredposition: 0
Author of the reply.
initials System.String requiredposition: 1
Initials of the author.
comment System.String requiredposition: 2
Reply text.

Returns

Newly created reply comment.

public static WordComment Create(WordDocument document, String author, String initials, String comment, WordComment parent = null) #
Returns: WordComment

Creates a new comment in the specified document.

Parameters

document OfficeIMO.Word.WordDocument requiredposition: 0
Document to which the comment will be added.
author System.String requiredposition: 1
Author of the comment.
initials System.String requiredposition: 2
Initials of the author.
comment System.String requiredposition: 3
Comment text.
parent OfficeIMO.Word.WordComment = null optionalposition: 4
Optional parent comment when creating a reply.

Returns

The newly created WordComment.

public Void Delete() #
Returns: Void

Deletes this comment and removes all references from the document.

public static List<WordComment> GetAllComments(WordDocument document) #
Returns: List<WordComment>

Retrieves all comments from the provided document.

Parameters

document OfficeIMO.Word.WordDocument requiredposition: 0
Word document containing comments.

Returns

List of WordComment objects.

public Void Remove() #
Returns: Void

Removes this comment from the document. Alias for Delete.

Properties

public String Id { get; } #

ID of a comment

public String ParaId { get; } #

Identifier used to link threaded replies.

public String ParentParaId { get; } #

Identifier of parent comment if this comment is a reply.

public WordComment ParentComment { get; } #

Parent comment instance if available.

public List<WordComment> Replies { get; } #

Replies for this comment.

public String Text { get; set; } #

Text content of a comment

public String Initials { get; set; } #

Initials of a person who created a comment

public String Author { get; set; } #

Full name of a person who created a comment

public Nullable<DateTime> DateTime { get; set; } #

DateTime when the comment was created