TX Text Control .NET for WPF

ReplyToComment Method

Method|Introduced in 30.0
Namespace
TXTextControl
Package
TXTextControl.TextControl.WPF.SDK as TXTextControl.dll from the private NuGet feed or Text Control Offline Packages

Description

Opens a comment input control to reply to this comment.

Syntax

public bool ReplyToComment();

Return Value

The return value is true, if the comment input control could be opened. Otherwise it is false. False is also returned, if this comment is already a reply to another comment.

Examples

The following example attaches a reviewer comment to selected contract text by using CommentedText.ReplyToComment.

textControl.Text = "Payment is due within 30 days.";
textControl.Select(0, textControl.Text.Length);
CommentedText commentedText = new("Verify the payment term.");
textControl.Comments.Add(commentedText);

if (commentedText.ReplyToComment())
{
    Console.WriteLine("Reply To Comment completed successfully.");
}