How to identify the content changes in SfRichTextBoxAdv?
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