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

Note

Class

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:

C#
public class Note : ChildDocumentContainer

Inheritance: objectChildDocumentContainerNote

Inherited Members ChildDocumentContainer.BodyChangingChildDocumentContainer.BodyChanged

Constructors

C#
public Note()

Properties

Gets or sets the body text of the note.

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

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

Overrides: ChildDocumentContainer.Body

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

C#
[XamlSerializable]
public string CustomMark { get; set; }

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

C#
public bool HasCustomMark { get; }

Methods

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

C#
public static Note CreateCustomMarkEndnote(string symbol, FontFamily fontFamily = null)
Parameters:symbolstring

The text to display as the endnote mark.

fontFamilyFontFamily

The font family to apply to the endnote mark.

Returns:

Note

A new instance of the custom endnote mark.

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

C#
public static Note CreateCustomMarkFootnote(string symbol, FontFamily fontFamily = null)
Parameters:symbolstring

The text content of the footnote.

fontFamilyFontFamily

The font family to be used for the footnote text.

Returns:

Note

A Note object representing the custom mark footnote.

Creates a deep copy of the current Note instance.

C#
public Note CreateDeepCopy()
Returns:

Note

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

Creates a default endnote.

C#
public static Note CreateDefaultEndnote()
Returns:

Note

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

Creates a default footnote in the document model.

C#
public static Note CreateDefaultFootnote()
Returns:

Note

A new instance of the Note class representing the footnote.

C#
protected override void OnBodyChanged()

Overrides: ChildDocumentContainer.OnBodyChanged()

C#
protected override void OnBodyChanging()

Overrides: ChildDocumentContainer.OnBodyChanging()