Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

WordCellComment

Namespace OfficeIMO.Word
Assembly OfficeIMO.Word
Modifiers sealed

A plain-text root comment anchored to a cell in the document body.

Inheritance

  • Object
  • WordCellComment

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 WordCellComment(WordTableCell cell, String author, String initials, String text, Nullable<DateTime> dateTime = null) #

Creates a cell comment. A null date leaves the creation timestamp unspecified.

Parameters

cell OfficeIMO.Word.WordTableCell requiredposition: 0
author System.String requiredposition: 1
initials System.String requiredposition: 2
text System.String requiredposition: 3
dateTime System.Nullable{System.DateTime} = null optionalposition: 4

Methods

public static Boolean CanPreserveText(String text) #
Returns: Boolean

Determines whether Word's plain-text paragraph owner preserves the text without normalization.

Parameters

text System.String requiredposition: 0

Properties

public WordTableCell Cell { get; } #

Gets the destination cell. Its direct paragraphs form the comment range.

public String Author { get; } #

Gets the author's exact display name.

public String Initials { get; } #

Gets the author's initials, which may be empty.

public String Text { get; } #

Gets plain text, including line feeds, tabs and whitespace.

public Nullable<DateTime> DateTime { get; } #

Gets the creation timestamp, or null when unspecified.