Comment Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. Core. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesCore. dll
- Also in
TXTextControl.asTextControl. ASP. SDK TXTextControl.dll
Description
Gets or sets a string which is the comment.
Syntax
public string Comment { get; set; }Public Property Comment As StringExamples
The following example attaches a reviewer comment to selected contract text by using CommentedText.Comment.
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);
commentedText.Comment = "Quarterly report";
if (!string.IsNullOrWhiteSpace(commentedText.Comment))
{
Console.WriteLine($"Comment: {commentedText.Comment}");
}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)
commentedText.Comment = "Quarterly report"
If Not String.IsNullOrWhiteSpace(commentedText.Comment) Then
Console.WriteLine($"Comment: {commentedText.Comment}")
End If