Comment
Stores a comment's author metadata and body document; a paired CommentRangeEnd associates it with a range in the main document.
Definition
Namespace:Telerik.WinForms.Documents.Model
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
public class Comment : ChildDocumentContainer
Inheritance: objectChildDocumentContainerComment
Inherited Members
Constructors
Creates a comment with an empty body document.
public Comment()
Creates a comment using the supplied document as its body.
public Comment(RadDocument body)
The document to use as the comment body; it must not be null.
Creates a comment by importing the supplied plain text into its body document.
Properties
Gets or sets the author metadata exported with the comment.
[XamlSerializable("")]
public string Author { get; set; }
Gets or sets the comment body. The setter rejects null and normalizes the assigned document for comment layout.
[XamlSerializable]
public override RadDocument Body { get; set; }
Overrides:
Empty bodies are measured, then configured for flow layout with zero default paragraph spacing, empty section margins and flow padding, and a 10-point font on the document style.
Methods
Creates a comment with the same name and author and a deep copy of the body without copying its styles.