EditComment Method
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WPF. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
Description
Opens a comment input control to edit the comment's text.
Syntax
public bool EditComment();Public Function EditComment() As BooleanReturn Value
The return value is true, if the comment input control could be opened. Otherwise it is false.
Examples
The following example attaches a reviewer comment to selected contract text by using CommentedText.EditComment.
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.EditComment())
{
Console.WriteLine("Edit Comment completed successfully.");
}textControl.Text = "Payment is due within 30 days."
textControl.Select(0, textControl.Text.Length)
Dim commentedText As New CommentedText("Verify the payment term.")
textControl.Comments.Add(commentedText)
If commentedText.EditComment() Then
Console.WriteLine("Edit Comment completed successfully.")
End If