Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

WordCellComment

OfficeIMO.Word

Namespace
OfficeIMO.Word
Assembly
OfficeIMO.Word
Source revision
5e5a2dda74b3 with working tree changes
Modifiers
sealed

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

Inheritance

  • object
  • WordCellComment

Usage

Explore 1 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 1

Constructors

public WordCellComment(WordTableCell cell, string author, string initials, string text, DateTime? dateTime = null) #

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

Parameters

cell OfficeIMO.Word.WordTableCell required
author string required
initials string required
text string required
dateTime System.DateTime? = null optional

Methods

public static bool CanPreserveText(string text) #

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

Parameters

text string required

Returns

bool

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 DateTime? DateTime { get; } #

Gets the creation timestamp, or null when unspecified.