# WordCommentFluent

The fluent methods of WordComment, generated from its public properties: A property-named method sets a property and a singular-named method adds…

Class 

`OfficeIMO.Word`

**Namespace**

`OfficeIMO.Word`

**Assembly**

`OfficeIMO.Word`

**Modifiers**

static

The fluent methods of [WordComment](/api/word/officeimo-word-wordcomment/), generated from its public properties: A property-named method sets a property and a singular-named method adds to a collection, both returning the same instance.

## Inheritance

- object
- WordCommentFluent

Filter members 

Show inherited

## Methods

`public static TSelf Author<TSelf>(TSelf wordComment, string? value)` [#](#method-author-string)

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

Type Parameters

**TSelf**

Parameters

**wordComment TSelf required**

The instance.

**value string? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property    // C# fluent
wordComment.Author = value;      wordComment.Author(value);
```

`public static TSelf DateTime<TSelf>(TSelf wordComment, DateTime? value)` [#](#method-datetime-nullable-system-datetime)

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

Type Parameters

**TSelf**

Parameters

**wordComment TSelf required**

The instance.

**value System.DateTime? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property    // C# fluent
wordComment.DateTime = value;    wordComment.DateTime(value);
```

`public static TSelf Initials<TSelf>(TSelf wordComment, string? value)` [#](#method-initials-string)

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

Type Parameters

**TSelf**

Parameters

**wordComment TSelf required**

The instance.

**value string? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property    // C# fluent
wordComment.Initials = value;    wordComment.Initials(value);
```

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

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

Type Parameters

**TSelf**

Parameters

**wordComment TSelf required**

The instance.

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

Configures the value.

Returns

`TSelf` The same instance.

`public static TSelf Resolved<TSelf>(TSelf wordComment, bool resolved = true)` [#](#method-resolved-boolean)

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

Type Parameters

**TSelf**

Parameters

**wordComment TSelf required**

The instance.

**resolved bool = true optional**

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

Returns

`TSelf` The same instance.

`public static TSelf Text<TSelf>(TSelf wordComment, string? value)` [#](#method-text-string)

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

Type Parameters

**TSelf**

Parameters

**wordComment TSelf required**

The instance.

**value string? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property    // C# fluent
wordComment.Text = value;        wordComment.Text(value);
```

## 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?`

<!-- PowerForge markdown artifact sha256:BE1145039581EABEA95D7D064413D04796BFAF89C21E1AF703C063A042B471AC -->
