# WordCommentScope

Edits one WordComment: its fluent methods and keywords, each returning this scope.

Class 

`OfficeIMO.Word`

**Namespace**

`OfficeIMO.Word`

**Assembly**

`OfficeIMO.Word`

**Modifiers**

sealed

Edits one [WordComment](/api/word/officeimo-word-wordcomment/): its fluent methods and keywords, each returning this scope.

## Inheritance

- object
- WordCommentScope

## Usage

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

### Returned or exposed by 6

- Method [WordCommentScope.Author](/api/word/officeimo-word-wordcommentscope/#method-author-string)
- Method [WordCommentScope.DateTime](/api/word/officeimo-word-wordcommentscope/#method-datetime-nullable-system-datetime)
- Method [WordCommentScope.Initials](/api/word/officeimo-word-wordcommentscope/#method-initials-string)
- Method [WordCommentScope.ParentComment](/api/word/officeimo-word-wordcommentscope/#method-parentcomment-action-officeimo-word-wordcomment)
- Method [WordCommentScope.Resolved](/api/word/officeimo-word-wordcommentscope/#method-resolved-boolean)
- Method [WordCommentScope.Text](/api/word/officeimo-word-wordcommentscope/#method-text-string)

### Accepted by parameters 1

- Method [WordParagraphScope.Comment](/api/word/officeimo-word-wordparagraphscope/#method-comment-string-string-string-action-officeimo-word-wordcommentscope) parameter `configure`

Filter members 

Show inherited

## Methods

`public WordCommentScope Author(string? value)` [#](#method-author-string)

Sets [WordComment.Author](/api/word/officeimo-word-wordcomment/): Full name of a person who created a comment

Parameters

**value string? required**

The value.

Returns

`WordCommentScope` The same scope.

`public WordCommentScope DateTime(DateTime? value)` [#](#method-datetime-nullable-system-datetime)

Sets [WordComment.DateTime](/api/word/officeimo-word-wordcomment/): DateTime when the comment was created

Parameters

**value System.DateTime? required**

The value.

Returns

`WordCommentScope` The same scope.

`public WordCommentScope Initials(string? value)` [#](#method-initials-string)

Sets [WordComment.Initials](/api/word/officeimo-word-wordcomment/): Initials of a person who created a comment

Parameters

**value string? required**

The value.

Returns

`WordCommentScope` The same scope.

`public WordCommentScope ParentComment(Action<WordComment> configure)` [#](#method-parentcomment-action-officeimo-word-wordcomment)

Configures [WordComment.ParentComment](/api/word/officeimo-word-wordcomment/) in place: Parent comment instance if available.

Parameters

**configure System.Action<OfficeIMO.Word.WordComment> required**

Configures the value.

Returns

`WordCommentScope` The same scope.

`public WordCommentScope Resolved(bool resolved = true)` [#](#method-resolved-boolean)

Sets the resolved state for this comment in the modern comment metadata part.

Parameters

**resolved bool = true optional**

Whether the comment should be marked resolved. True when omitted.

Returns

`WordCommentScope` The same scope.

`public WordCommentScope Text(string? value)` [#](#method-text-string)

Sets [WordComment.Text](/api/word/officeimo-word-wordcomment/): Text content of a comment

Parameters

**value string? required**

The value.

Returns

`WordCommentScope` The same scope.

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public WordComment Model { get; }` [#](#property-model)

The [WordComment](/api/word/officeimo-word-wordcomment/) this scope edits, for plain C# inside a lambda.

<!-- PowerForge markdown artifact sha256:47018B1CFE101C953599E075EA1FE7E747B19129DED692EB85B13E97561BBC84 -->
