Class
Comment

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:

cs-api-definition
public class Comment : ChildDocumentContainer

Inheritance: objectChildDocumentContainerComment

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

Constructors

Comment()

Declaration

cs-api-definition
public Comment()

Comment(RadDocument)

Declaration

cs-api-definition
public Comment(RadDocument body)

Parameters

body

RadDocument

Comment(string)

Declaration

cs-api-definition
public Comment(string body)

Parameters

body

string

Properties

Author

Gets or sets the author of the comment.

Declaration

cs-api-definition
[XamlSerializable("")]
public string Author { get; set; }

Property Value

string

The name of the author associated with the comment.

Body

Gets the body of the child document container.

Declaration

cs-api-definition
[XamlSerializable]
public override RadDocument Body { get; set; }

Property Value

RadDocument

Overrides ChildDocumentContainer.Body

Remarks

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

Name

Gets or sets the name of the comment.

Declaration

cs-api-definition
[XamlSerializable("")]
public string Name { get; set; }

Property Value

string

A string representing the name of the comment.

Methods

CreateDeepCopy()

Creates a deep copy of the current Comment instance.

Declaration

cs-api-definition
public Comment CreateDeepCopy()

Returns

Comment

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