Class
Note

Represents a note in the Telerik document model, which can store text and associated metadata.

Definition

Namespace:Telerik.Windows.Documents.Model.Notes

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Syntax:

cs-api-definition
public class Note : ChildDocumentContainer

Inheritance: objectChildDocumentContainerNote

Inherited Members ChildDocumentContainer.BodyChangingChildDocumentContainer.BodyChanged

Constructors

Note()

Declaration

cs-api-definition
public Note()

Properties

Body

Gets or sets the body text of the note.

Declaration

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

Property Value

RadDocument

A string representing the content of the note's body.

Overrides ChildDocumentContainer.Body

CustomMark

Represents a custom mark in a note, allowing for additional annotations or highlights.

Declaration

cs-api-definition
[XamlSerializable]
public string CustomMark { get; set; }

Property Value

string

HasCustomMark

Gets a value indicating whether the note has a custom mark applied.

Declaration

cs-api-definition
public bool HasCustomMark { get; }

Property Value

bool

Methods

CreateCustomMarkEndnote(string, FontFamily)

Creates a custom mark for an endnote with the specified text and font family.

Declaration

cs-api-definition
public static Note CreateCustomMarkEndnote(string symbol, FontFamily fontFamily = null)

Parameters

symbol

string

The text to display as the endnote mark.

fontFamily

FontFamily

The font family to apply to the endnote mark.

Returns

Note

A new instance of the custom endnote mark.

CreateCustomMarkFootnote(string, FontFamily)

Creates a custom mark footnote with the specified text and font family.

Declaration

cs-api-definition
public static Note CreateCustomMarkFootnote(string symbol, FontFamily fontFamily = null)

Parameters

symbol

string

The text content of the footnote.

fontFamily

FontFamily

The font family to be used for the footnote text.

Returns

Note

A Note object representing the custom mark footnote.

CreateDeepCopy()

Creates a deep copy of the current Note instance.

Declaration

cs-api-definition
public Note CreateDeepCopy()

Returns

Note

A new Note object that is a deep copy of the original instance.

CreateDefaultEndnote()

Creates a default endnote.

Declaration

cs-api-definition
public static Note CreateDefaultEndnote()

Returns

Note

A new instance of the Note class representing the default endnote.

CreateDefaultFootnote()

Creates a default footnote in the document model.

Declaration

cs-api-definition
public static Note CreateDefaultFootnote()

Returns

Note

A new instance of the Note class representing the footnote.

OnBodyChanged()

Declaration

cs-api-definition
protected override void OnBodyChanged()

Overrides ChildDocumentContainer.OnBodyChanged()

OnBodyChanging()

Declaration

cs-api-definition
protected override void OnBodyChanging()

Overrides ChildDocumentContainer.OnBodyChanging()