Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

WordCommentFluent

OfficeIMO.Word

Namespace
OfficeIMO.Word
Assembly
OfficeIMO.Word
Modifiers
static

The fluent methods of 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

Methods

public static TSelf Author<TSelf>(TSelf wordComment, string? value) #

Sets WordComment.Author: 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

// C# initializer or property    // C# fluent
wordComment.Author = value;      wordComment.Author(value);
public static TSelf DateTime<TSelf>(TSelf wordComment, DateTime? value) #

Sets WordComment.DateTime: 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

// C# initializer or property    // C# fluent
wordComment.DateTime = value;    wordComment.DateTime(value);
public static TSelf Initials<TSelf>(TSelf wordComment, string? value) #

Sets WordComment.Initials: 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

// C# initializer or property    // C# fluent
wordComment.Initials = value;    wordComment.Initials(value);
public static TSelf ParentComment<TSelf>(TSelf wordComment, Action<WordComment> configure) #

Configures WordComment.ParentComment 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) #

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) #

Sets WordComment.Text: 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

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