Articles in this section
Category / Section

How to identify the content changes in SfRichTextBoxAdv?

1 min read

How to identify the content changes in SfRichTextBoxAdv?

Using the ContentChanged event of SfRichTextBoxAdv control you can identify if any changes done to the content of SfRichTextBoxAdv document. This event will be triggered each time if any edit operations performed in SfRichTextBoxAdv such as insert, delete, cut, copy, paste and formatting the contents.

The following sample code demonstrates how to hook the ContentChanged event of SfRichTextBoxAdv control.

Xaml

<richtextbox:SfRichTextBoxAdv x:Name="richTextBoxAdv" xmlns:richtextbox="using:Syncfusion.UI.Xaml.RichTextBoxAdv" ContentChanged="richTextBoxAdv_ContentChanged"/>

 

The following sample code snippet denotes the definition of ContentChanged event.

C#

void richTextBoxAdv_ContentChanged(object obj, ContentChangedEventArgs args)
{
    //To do: Here you can code necessary functionalities when the content is changed
}

VB

Private Sub richTextBoxAdv_ContentChanged(obj As Object, args As ContentChangedEventArgs)
    'To do: Here you can code necessary functionalities when the content is changed
End Sub

 

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment