New to Telerik UI for WPFStart a free 30-day trial

Comment

Class

Represents a comment in the document model, providing a way to add notes or annotations to specific parts of the content.

Definition

Namespace:Telerik.Windows.Documents.Model

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Syntax:

C#
public class Comment : ChildDocumentContainer

Inheritance: objectChildDocumentContainerComment

Inherited Members ChildDocumentContainer.OnBodyChanging()ChildDocumentContainer.OnBodyChanged()ChildDocumentContainer.BodyChangingChildDocumentContainer.BodyChanged

Constructors

C#
public Comment()
C#
public Comment(RadDocument body)
Parameters:bodyRadDocument
C#
public Comment(string body)
Parameters:bodystring

Properties

Gets or sets the author of the comment.

C#
[XamlSerializable("")]
public string Author { get; set; }
Property Value:

The name of the author associated with the comment.

Gets the body of the child document container.

C#
[XamlSerializable]
public override RadDocument Body { get; set; }

Overrides: ChildDocumentContainer.Body

Remarks:

The body contains the main content of the document, including paragraphs, tables, images, and other elements.

Gets or sets the name of the comment.

C#
[XamlSerializable("")]
public string Name { get; set; }
Property Value:

A string representing the name of the comment.

Methods

Creates a deep copy of the current Comment instance.

C#
public Comment CreateDeepCopy()
Returns:

Comment

A new Comment instance that is a deep copy of the current instance.