From e078cae09b02c7a23e59ec6cf857058a10068636 Mon Sep 17 00:00:00 2001
From: Kalaivannan-Ganesan
<93248069+Kalaivannan-Ganesan@users.noreply.github.com>
Date: Sun, 9 Aug 2026 15:50:20 +0530
Subject: [PATCH] Moved changes into new hotfix branch
---
...edded-image-in-HTML-in-SfRichTextBoxAdv.md | 13 +-
...d-to-the-bottom-of-the-SfRichTextBoxAdv.md | 53 ++++---
...Document-from-DocIO-in-SfRichTextBoxAdv.md | 77 +++++-----
...ichTextBoxAdv-as-a-standard-RichTextBox.md | 19 ++-
...arge-size-documents-in-SfRichTextBoxAdv.md | 32 +++-
.../Word-Processor/uwp/Find-and-Replace.md | 140 ++++++++++++------
.../Word/Word-Processor/uwp/Hyperlink.md | 51 ++++---
7 files changed, 252 insertions(+), 133 deletions(-)
diff --git a/Document-Processing/Word/Word-Processor/uwp/FAQ-Section/How-to-export-the-inserted-image-as-an-Embedded-image-in-HTML-in-SfRichTextBoxAdv.md b/Document-Processing/Word/Word-Processor/uwp/FAQ-Section/How-to-export-the-inserted-image-as-an-Embedded-image-in-HTML-in-SfRichTextBoxAdv.md
index 5499c8aced..7bac12436e 100644
--- a/Document-Processing/Word/Word-Processor/uwp/FAQ-Section/How-to-export-the-inserted-image-as-an-Embedded-image-in-HTML-in-SfRichTextBoxAdv.md
+++ b/Document-Processing/Word/Word-Processor/uwp/FAQ-Section/How-to-export-the-inserted-image-as-an-Embedded-image-in-HTML-in-SfRichTextBoxAdv.md
@@ -4,14 +4,14 @@ description: Learn here all about how to export the inserted image as an Embedde
platform: document-processing
control: SfRichTextBoxAdv
documentation: ug
-keywords: embedded-image-html
+keywords: embedded-image-html,image-node-visited,html-import-export-settings,embedded-image,html-export,image-source
---
-# Export Image as Embedded in HTML in UWP SfRichTextBoxAdv
+# Export inserted image as embedded in HTML in UWP SfRichTextBoxAdv
This page explains how to export the inserted image as an Embedded image in HTML in Syncfusion® UWP SfRichTextBoxAdv.
-In the SfRichTextBoxAdv control, we offer an option to specify HTML export settings. By utilizing the [ImageNodeVisitedEvent](https://help.syncfusion.com/cr/uwp/Syncfusion.UI.Xaml.RichTextBoxAdv.ImageNodeVisitedEventArgs.html) event of the [HtmlImportExportSettings](https://help.syncfusion.com/cr/uwp/Syncfusion.UI.Xaml.RichTextBoxAdv.HtmlImportExportSettings.html) instance, you can both retrieve and define the image stream and image source. When setting the image source as Empty, the inserted picture can be exported as an embedded image in the HTML.
+SfRichTextBoxAdv lets you specify HTML export settings. By using the [`ImageNodeVisited`](https://help.syncfusion.com/cr/uwp/Syncfusion.UI.Xaml.RichTextBoxAdv.ImageNodeVisitedEventArgs.html) event of the [`HtmlImportExportSettings`](https://help.syncfusion.com/cr/uwp/Syncfusion.UI.Xaml.RichTextBoxAdv.HtmlImportExportSettings.html) instance, you can retrieve or set the image stream and image source. When you set the image source to an empty string, the inserted picture is exported as an embedded image in the HTML.
The following code example illustrates to export the inserted image as an Embedded image in HTML in the SfRichTextBoxAdv.
@@ -36,4 +36,9 @@ richTextBoxAdv.HtmlImportExportSettings.ImageNodeVisited += HtmlImportExportSett
// Unhooks the event handler for ImageNodeVisited event.
richTextBoxAdv.HtmlImportExportSettings.ImageNodeVisited -= HtmlImportExportSettings_ImageNodeVisited;
{% endhighlight %}
-{% endtabs %}
\ No newline at end of file
+{% endtabs %}
+
+## See also
+
+- [UWP RichTextBox Feature Tour](https://www.syncfusion.com/docx-editor-sdk/uwp-docx-editor)
+- [UWP RichTextBox Examples](https://github.com/syncfusion/docx-editor-sdk-uwp-demos)
\ No newline at end of file
diff --git a/Document-Processing/Word/Word-Processor/uwp/FAQ-Section/How-to-identify-whether-the-viewer-is-scrolled-to-the-bottom-of-the-SfRichTextBoxAdv.md b/Document-Processing/Word/Word-Processor/uwp/FAQ-Section/How-to-identify-whether-the-viewer-is-scrolled-to-the-bottom-of-the-SfRichTextBoxAdv.md
index 365b5b186c..5ed0055538 100644
--- a/Document-Processing/Word/Word-Processor/uwp/FAQ-Section/How-to-identify-whether-the-viewer-is-scrolled-to-the-bottom-of-the-SfRichTextBoxAdv.md
+++ b/Document-Processing/Word/Word-Processor/uwp/FAQ-Section/How-to-identify-whether-the-viewer-is-scrolled-to-the-bottom-of-the-SfRichTextBoxAdv.md
@@ -4,46 +4,53 @@ description: Learn here all about how to identify whether the viewer is scrolled
platform: document-processing
control: SfRichTextBoxAdv
documentation: ug
-keywords: scroll-to-bottom
+keywords: scroll-to-bottom,scroll,verticalscrollbar,horizontalscrollbar,scrollbar,scrolling-events
---
# Detect viewer scrolled to bottom in UWP SfRichTextBoxAdv
-This page explains how to identify whether the viewer is scrolled to the bottom in Syncfusion® UWP SfRichTextBoxAdv.
+This page explains how to identify whether the viewer is scrolled to the bottom in the UWP [`SfRichTextBoxAdv`](https://help.syncfusion.com/cr/uwp/Syncfusion.UI.Xaml.RichTextBoxAdv.SfRichTextBoxAdv.html) control.
-SfRichTextBoxAdv scrollbars can be accessed through the [VerticalScrollBar](https://help.syncfusion.com/cr/uwp/Syncfusion.UI.Xaml.RichTextBoxAdv.SfRichTextBoxAdv.html#Syncfusion_UI_Xaml_RichTextBoxAdv_SfRichTextBoxAdv_VerticalScrollBar) and [HorizontalScrollBar](https://help.syncfusion.com/cr/uwp/Syncfusion.UI.Xaml.RichTextBoxAdv.SfRichTextBoxAdv.html#Syncfusion_UI_Xaml_RichTextBoxAdv_SfRichTextBoxAdv_HorizontalScrollBar) properties of [SfRichTextBoxAdv](https://help.syncfusion.com/cr/uwp/Syncfusion.UI.Xaml.RichTextBoxAdv.SfRichTextBoxAdv.html) class. Using these properties, we can identify when the document is scrolled to the bottom of the control.
+## Detecting scroll-to-bottom
-We can use the ValueChanged event of the [VerticalScrollBar](https://help.syncfusion.com/cr/uwp/Syncfusion.UI.Xaml.RichTextBoxAdv.SfRichTextBoxAdv.html#Syncfusion_UI_Xaml_RichTextBoxAdv_SfRichTextBoxAdv_VerticalScrollBar) for this purpose. Check if the scroll bar's value equals the [VerticalScrollBar](https://help.syncfusion.com/cr/uwp/Syncfusion.UI.Xaml.RichTextBoxAdv.SfRichTextBoxAdv.html#Syncfusion_UI_Xaml_RichTextBoxAdv_SfRichTextBoxAdv_VerticalScrollBar) Maximum property value, if these values are equal then the vertical scroll bar has been scrolled to the bottom of the control.
+SfRichTextBoxAdv exposes the document scroll bars through the [`VerticalScrollBar`](https://help.syncfusion.com/cr/uwp/Syncfusion.UI.Xaml.RichTextBoxAdv.SfRichTextBoxAdv.html#Syncfusion_UI_Xaml_RichTextBoxAdv_SfRichTextBoxAdv_VerticalScrollBar) and [`HorizontalScrollBar`](https://help.syncfusion.com/cr/uwp/Syncfusion.UI.Xaml.RichTextBoxAdv.SfRichTextBoxAdv.html#Syncfusion_UI_Xaml_RichTextBoxAdv_SfRichTextBoxAdv_HorizontalScrollBar) properties of the `SfRichTextBoxAdv` class. Using these properties, you can detect when the document is scrolled to the bottom of the control.
-The following code example illustrates to identify whether the viewer is scrolled to the bottom of the SfRichTextBoxAdv.
+Use the `ValueChanged` event of the `VerticalScrollBar` for this purpose. Check whether the scroll bar's value equals the `VerticalScrollBar.Maximum` value; if so, the vertical scroll bar has been scrolled to the bottom of the control.
+
+The following code example illustrates how to identify whether the viewer is scrolled to the bottom of `SfRichTextBoxAdv`.
{% tabs %}
{% highlight c# %}
///
-/// Occurs when the element is laid out, rendered, and ready for interaction.
+/// Occurs when the SfRichTextBoxAdv is loaded and ready for interaction.
///
/// The source of the event.
/// The RoutedEventArgs instance containing the event data.
- private void RichTextBoxAdv_Loaded(object sender, RoutedEventArgs e)
- {
- if (richTextBoxAdv.VerticalScrollBar != null)
- {
- richTextBoxAdv.VerticalScrollBar.ValueChanged += VerticalScrollBar_ValueChanged;
- }
- }
+private void RichTextBoxAdv_Loaded(object sender, RoutedEventArgs e)
+{
+ if (richTextBoxAdv.VerticalScrollBar != null)
+ {
+ richTextBoxAdv.VerticalScrollBar.ValueChanged += VerticalScrollBar_ValueChanged;
+ }
+}
///
-/// Occurs when vertical scrollbar value is changed.
+/// Occurs when the vertical scroll bar value changes.
///
/// The source of the event.
/// The RangeBaseValueChangedEventArgs instance containing the event data.
- private void VerticalScrollBar_ValueChanged(object sender, RangeBaseValueChangedEventArgs e)
- {
- if (e.NewValue == richTextBoxAdv.VerticalScrollBar.Maximum)
- {
- ///When the scroll bar value and its maximum value are same.
- ///Then scroll reached the bottom of the control.
- }
- }
+private void VerticalScrollBar_ValueChanged(object sender, RangeBaseValueChangedEventArgs e)
+{
+ // When the scroll bar value equals its Maximum, the scroll has reached the bottom of the control.
+ if (e.NewValue == richTextBoxAdv.VerticalScrollBar.Maximum)
+ {
+ // Add your "reached the bottom" logic here.
+ }
+}
{% endhighlight %}
-{% endtabs %}
\ No newline at end of file
+{% endtabs %}
+
+## See also
+
+- [UWP RichTextBox Feature Tour](https://www.syncfusion.com/docx-editor-sdk/uwp-docx-editor)
+- [UWP RichTextBox Examples](https://github.com/syncfusion/docx-editor-sdk-uwp-demos)
\ No newline at end of file
diff --git a/Document-Processing/Word/Word-Processor/uwp/FAQ-Section/How-to-paste-WordDocument-from-DocIO-in-SfRichTextBoxAdv.md b/Document-Processing/Word/Word-Processor/uwp/FAQ-Section/How-to-paste-WordDocument-from-DocIO-in-SfRichTextBoxAdv.md
index c77631afb5..2177543337 100644
--- a/Document-Processing/Word/Word-Processor/uwp/FAQ-Section/How-to-paste-WordDocument-from-DocIO-in-SfRichTextBoxAdv.md
+++ b/Document-Processing/Word/Word-Processor/uwp/FAQ-Section/How-to-paste-WordDocument-from-DocIO-in-SfRichTextBoxAdv.md
@@ -4,24 +4,26 @@ description: Learn here all about how to paste WordDocument from .NET Word libra
platform: document-processing
control: SfRichTextBoxAdv
documentation: ug
-keywords: paste-WordDocument-from-DocIO
+keywords: paste-WordDocument-from-DocIO,paste,worddocument,docio,pastecommand
---
# Paste WordDocument from DocIO in the UWP SfRichTextBoxAdv
-The PasteCommand with [WordDocument](https://help.syncfusion.com/cr/file-formats/Syncfusion.DocIO.DLS.WordDocument.html) as a parameter is a feature that allows you to paste the contents of a WordDocument into the current selection of the SfRichTextBoxAdv control.This provides a convenient and efficient way to transfer and display complex document structures from Word documents directly within the SfRichTextBoxAdv.
+The [`PasteCommand`](https://help.syncfusion.com/cr/uwp/Syncfusion.UI.Xaml.RichTextBoxAdv.SfRichTextBoxAdv.html#Syncfusion_UI_Xaml_RichTextBoxAdv_SfRichTextBoxAdv_PasteCommand) accepts a [`WordDocument`](https://help.syncfusion.com/cr/document-processing/Syncfusion.DocIO.DLS.WordDocument.html) as a parameter, allowing you to paste the contents of a Word document into the current selection of the [`SfRichTextBoxAdv`](https://help.syncfusion.com/cr/uwp/Syncfusion.UI.Xaml.RichTextBoxAdv.SfRichTextBoxAdv.html) control. This provides a convenient way to transfer and display complex document structures from Word documents directly within SfRichTextBoxAdv.
-Using this feature, you can achieve below things by pasting WordDocument into the SfRichTextBoxAdv at current selection:
+Using this feature, you can achieve the following by pasting a `WordDocument` into SfRichTextBoxAdv at the current selection:
-* Perform all the document manipulation features of [.NET Word library (DocIO)](https://help.syncfusion.com/file-formats/docio/overview) and then finally insert into SfRichTextBoxAdv
+* Perform all the document manipulation features of the [.NET Word library (DocIO)](https://help.syncfusion.com/document-processing/word/word-library/net/overview) and then finally insert the result into SfRichTextBoxAdv.
-* Insert another [Word document](https://help.syncfusion.com/file-formats/docio/word-file-formats) (DOC, DOCX) and [HTML](https://help.syncfusion.com/file-formats/docio/html) document from DocIO.
+* Insert another [Word document](https://help.syncfusion.com/document-processing/word/conversions/word-file-formats-conversions) (DOC, DOCX) and [HTML](https://help.syncfusion.com/document-processing/word/conversions/html-conversions) document from DocIO.
-* Insert part of another Word document by retrieving the part of content using [bookmark functionality](https://help.syncfusion.com/file-formats/docio/working-with-bookmarks) in DocIO.
+* Insert part of another Word document by retrieving a range of content using the [bookmark functionality](https://help.syncfusion.com/document-processing/word/word-library/net/working-with-bookmarks) in DocIO.
-* Create new elements in scratch as per desired formatting such as [text](https://help.syncfusion.com/file-formats/docio/working-with-paragraph#working-with-text), [images](https://help.syncfusion.com/file-formats/docio/working-with-paragraph#working-with-images), [tables](https://help.syncfusion.com/file-formats/docio/working-with-tables) and more using DocIO and paste that WordDocument instance.
+* Create new elements from scratch with the desired formatting, such as [text](https://help.syncfusion.com/document-processing/word/word-library/net/working-with-paragraph#working-with-text), [images](https://help.syncfusion.com/document-processing/word/word-library/net/working-with-paragraph#working-with-images), and [tables](https://help.syncfusion.com/document-processing/word/word-library/net/working-with-tables), using DocIO and paste that `WordDocument` instance.
-The following code example illustrates how to design a table with set of formatting using DocIO and paste it into the SfRichTextBoxAdv using WordDocument.
+## Pasting a WordDocument
+
+The following code example illustrates how to design a table with applied formatting using DocIO and paste it into the SfRichTextBoxAdv using `WordDocument`.
{% tabs %}
{% highlight c# %}
@@ -30,36 +32,36 @@ WordDocument document = CreateTable();
richTextBoxAdv.PasteCommand.Execute(document);
///
-/// The following helper method illustrates how to create table in DocIO.
+/// The following helper method illustrates how to create a table in DocIO.
///
-Private WordDocument CreateTable()
+private WordDocument CreateTable()
{
-///Creates an instance of WordDocument class
- WordDocument document = new WordDocument();
-///Adds a section into Word document
- IWSection section = document.AddSection();
-///Adds a new table into Word document
- IWTable table = section.AddTable();
-///Specifies the total number of rows & columns
- table.ResetCells(10, 6);
-///Iterates the rows of the table
- for (int i = 0; i < table.Rows.Count; i++)
- {
- WTableRow wTableRow = table.Rows[i];
- ///Iterates through the cells of rows
- for (int j = 0; j < wTableRow.Cells.Count; j++)
- {
+ // Creates an instance of the WordDocument class.
+ WordDocument document = new WordDocument();
+ // Adds a section to the Word document.
+ IWSection section = document.AddSection();
+ // Adds a new table to the Word document.
+ IWTable table = section.AddTable();
+ // Specifies the total number of rows and columns.
+ table.ResetCells(10, 6);
+ // Iterates the rows of the table.
+ for (int i = 0; i < table.Rows.Count; i++)
+ {
+ WTableRow wTableRow = table.Rows[i];
+ // Iterates the cells of the row.
+ for (int j = 0; j < wTableRow.Cells.Count; j++)
+ {
WTableCell wTableCell = wTableRow.Cells[j];
- ///Specifies the left, right, top and bottom padding of the cell.
+ // Specifies the left, right, top, and bottom padding of the cell.
wTableCell.CellFormat.Paddings.Left = 7.5f;
wTableCell.CellFormat.Paddings.Top = 7.5f;
wTableCell.CellFormat.Paddings.Right = 7.5f;
wTableCell.CellFormat.Paddings.Bottom = 7.5f;
- ///set background color for cell.
+ // Sets the background color for the cell.
wTableCell.CellFormat.BackColor = Color.Blue;
- ///Set border type for tablecell borders
+ // Sets the border type for the table cell borders.
wTableCell.CellFormat.Borders.BorderType = BorderStyle.Single;
- ///Set color for tablecell borders
+ // Sets the color for the table cell borders.
wTableCell.CellFormat.Borders.Color = Color.Red;
wTableCell.CellFormat.Borders.Top.Color = Color.Red;
wTableCell.CellFormat.Borders.Bottom.Color = Color.Red;
@@ -67,13 +69,22 @@ Private WordDocument CreateTable()
wTableCell.CellFormat.Borders.Left.Color = Color.Red;
///Set line width for tablecell borders.
wTableCell.CellFormat.Borders.LineWidth = 7.5f;
- }
- }
- return WordDocument
+ }
+ }
+ return document;
}
{% endhighlight %}
{% endtabs %}
## Limitation
-When the document content is pasted into the SfRichTextBoxAdv control using WordDocument as a parameter, the history will not be maintained. That is, if a table is created using WordDocument, with multiple formats applied, and then table is pasted into the SfRichTextBoxAdv control, performing Undo will remove the inserted table, and performing Redo will insert the table again. Since, we are creating table outside of SfRichTextBoxAdv and it will not maintain history.
\ No newline at end of file
+When the document content is pasted into the SfRichTextBoxAdv control using WordDocument as a parameter, the history will not be maintained. That is, if a table is created using WordDocument, with multiple formats applied, and then table is pasted into the SfRichTextBoxAdv control, performing Undo will remove the inserted table, and performing Redo will insert the table again. Since, we are creating table outside of SfRichTextBoxAdv and it will not maintain history.
+
+N> This feature is supported from v22.2.5.
+
+## See also
+
+- [PasteCommand API Reference](https://help.syncfusion.com/cr/uwp/Syncfusion.UI.Xaml.RichTextBoxAdv.SfRichTextBoxAdv.html#Syncfusion_UI_Xaml_RichTextBoxAdv_SfRichTextBoxAdv_PasteCommand)
+- [.NET Word Library (DocIO) Documentation](https://help.syncfusion.com/file-formats/docio/overview)
+- [UWP RichTextBox Feature Tour](https://www.syncfusion.com/docx-editor-sdk/uwp-docx-editor)
+- [UWP RichTextBox Examples](https://github.com/syncfusion/docx-editor-sdk-uwp-demos)
\ No newline at end of file
diff --git a/Document-Processing/Word/Word-Processor/uwp/FAQ-Section/How-to-use-SfRichTextBoxAdv-as-a-standard-RichTextBox.md b/Document-Processing/Word/Word-Processor/uwp/FAQ-Section/How-to-use-SfRichTextBoxAdv-as-a-standard-RichTextBox.md
index 1954ab093c..16353f45f2 100644
--- a/Document-Processing/Word/Word-Processor/uwp/FAQ-Section/How-to-use-SfRichTextBoxAdv-as-a-standard-RichTextBox.md
+++ b/Document-Processing/Word/Word-Processor/uwp/FAQ-Section/How-to-use-SfRichTextBoxAdv-as-a-standard-RichTextBox.md
@@ -1,18 +1,18 @@
---
-title: How to use SfRichTextBoxAdv as a standard RichTextBox. | Syncfusion
+title: How to use SfRichTextBoxAdv as a standard RichTextBox | Syncfusion
description: Learn how to use UWP SfRichTextBoxAdv as a standard RichTextBox along with its core key features and usage.
platform: document-processing
control: SfRichTextBoxAdv
documentation: ug
-keywords: use-sfrichtextboxadv-like-richtextbox
+keywords: use-sfrichtextboxadv-like-richtextbox,standard-richtextbox,toolbar
---
-# Use SfRichTextBoxAdv as a standard RichTextBox
+# Use SfRichTextBoxAdv as a standard RichTextBox in UWP
Use the following code to configure the SfRichTextBoxAdv control as a standard RichTextBox with rich text formatting options.
{% tabs %}
-{% highlight xaml tabtitle="MainWindow.xaml" %}
+{% highlight xaml tabtitle="MainPage.xaml" %}
[View Sample in GitHub](https://github.com/SyncfusionExamples/UWP-RichTextBox-Examples/tree/main/Samples/Standard%20RichTextBox).
\ No newline at end of file
+N> [View Sample in GitHub](https://github.com/SyncfusionExamples/UWP-RichTextBox-Examples/tree/main/Samples/Standard%20RichTextBox).
+
+## See also
+
+- [UWP RichTextBox Feature Tour](https://www.syncfusion.com/docx-editor-sdk/uwp-docx-editor)
+- [UWP RichTextBox Examples](https://github.com/syncfusion/docx-editor-sdk-uwp-demos)
\ No newline at end of file
diff --git a/Document-Processing/Word/Word-Processor/uwp/FAQ-Section/Why-does-out-of-memory-exception-throw-on-opening-large-size-documents-in-SfRichTextBoxAdv.md b/Document-Processing/Word/Word-Processor/uwp/FAQ-Section/Why-does-out-of-memory-exception-throw-on-opening-large-size-documents-in-SfRichTextBoxAdv.md
index 6948e975e8..e77377a2ad 100644
--- a/Document-Processing/Word/Word-Processor/uwp/FAQ-Section/Why-does-out-of-memory-exception-throw-on-opening-large-size-documents-in-SfRichTextBoxAdv.md
+++ b/Document-Processing/Word/Word-Processor/uwp/FAQ-Section/Why-does-out-of-memory-exception-throw-on-opening-large-size-documents-in-SfRichTextBoxAdv.md
@@ -4,11 +4,33 @@ description: Understand why out of memory exceptions occur in Syncfusion UWP SfR
platform: document-processing
control: SfRichTextBoxAdv
documentation: ug
-keywords: out-of-memory-exception
+keywords: out-of-memory-exception,out-of-memory,large-documents,ui-virtualization,memory-limit
---
-# Why does SfRichTextBoxAdv throw out of memory on large documents
-## Why does out of memory exception throw on opening large size documents in SfRichTextBoxAdv
+# Why does an out of memory exception occur in UWP SfRichTextBoxAdv?
-The SfRichTextBoxAdv control keeps the entire rich text content (text, images, tables, and all the other supported elements along with its formatting) of the document and its corresponding information needed for rendering in main memory. In case of opening a DOCX file, you may think that the file size is small and SfRichTextBoxAdv utilizes a very large memory; whereas it is a zip archive file with extension “docx” and SfRichTextBoxAdv control internally decompresses it and populates the content in the document object model by utilizing remarkable amount of main memory.
-The SfRichTextBoxAdv control supports UI Virtualization. UI elements are created only for the contents that are visible in the viewer. The UI elements are created for the contents that become visible while scrolling the viewer. This reduces the main memory utilization and also improves UI performance. Even though UI Virtualization is handled, the main memory utilization increases with respect to the increase of content and its complexity. The main memory utilized by an instance will not be released until the instance is removed from the document. So, there is a chance for out of memory exception when the memory utilization exceeds the maximum level as the content of the document increases. In that case, split the contents to several documents or use high configuration machines with extended RAM so as to create or open large size documents comfortably.
+This page explains why an `OutOfMemoryException` is thrown when opening large documents in the [UWP RichTextBox](https://www.syncfusion.com/docx-editor-sdk/uwp-docx-editor) (SfRichTextBoxAdv) control and provides guidance on how to avoid it.
+
+## Cause
+
+The SfRichTextBoxAdv control keeps the entire rich text content of the document in memory. This includes the text, images, tables, and all other supported elements along with their formatting, as well as the information required for rendering.
+
+When opening a DOCX file, you may notice that the file size on disk is small, yet the SfRichTextBoxAdv uses a large amount of memory. This is because a DOCX file is a zip archive with the `.docx` extension, and the SfRichTextBoxAdv control internally decompresses it and populates the content in the document object model by using a significant amount of memory.
+
+## Impact
+
+The SfRichTextBoxAdv control supports UI Virtualization. UI elements are created only for the content that is visible in the viewer, and additional UI elements are created for the content that becomes visible while scrolling. This reduces memory usage and also improves UI performance.
+
+However, even with UI Virtualization in place, memory utilization increases with the size and complexity of the content. The memory used by a document instance will not be released until the document instance is removed. When memory utilization exceeds the maximum allowed level as the document content grows, an `OutOfMemoryException` can be thrown.
+
+## Resolution
+
+To avoid an `OutOfMemoryException` when working with large documents, consider the following workarounds:
+
+- **Split large documents** — Break the content into several smaller documents and open them individually instead of loading the entire document at once.
+- **Use a high-configuration machine** — Run the application on a machine with sufficient RAM and CPU resources to comfortably load and edit the document.
+
+## See also
+
+- [UWP RichTextBox Feature Tour](https://www.syncfusion.com/docx-editor-sdk/uwp-docx-editor)
+- [UWP RichTextBox Examples](https://github.com/syncfusion/docx-editor-sdk-uwp-demos)
\ No newline at end of file
diff --git a/Document-Processing/Word/Word-Processor/uwp/Find-and-Replace.md b/Document-Processing/Word/Word-Processor/uwp/Find-and-Replace.md
index 6667f927d5..85e4867d2a 100644
--- a/Document-Processing/Word/Word-Processor/uwp/Find-and-Replace.md
+++ b/Document-Processing/Word/Word-Processor/uwp/Find-and-Replace.md
@@ -4,126 +4,182 @@ description: Learn here all about Find and Replace support in Syncfusion UWP Ric
platform: document-processing
control: SfRichTextBoxAdv
documentation: ug
-keywords: search,find,replace-text
+keywords: search,find,replace-text,findall,findoptions,showoptionspanecommand
---
# Find and Replace in UWP RichTextBox (SfRichTextBoxAdv)
-The SfRichTextBoxAdv control supports searching text contents in the document. This when used in combination with selection becomes a powerful tool enabling scenarios like highlighting specific parts of the document, applying formatting such as bold or replacing text. You can extend your search by using regular expression to find particular pattern of text in the document.
+The [`SfRichTextBoxAdv`](https://help.syncfusion.com/cr/uwp/Syncfusion.UI.Xaml.RichTextBoxAdv.SfRichTextBoxAdv.html) control supports searching text content in the document. When used in combination with selection, this becomes a powerful tool that enables scenarios such as highlighting specific parts of the document, applying formatting (for example, bold), or replacing text. You can extend your search by using regular expressions to find a particular pattern of text in the document.
+
+## Finding text
+
The following code example explains how to find the first occurrence of a particular text in the document and apply bold formatting.
+
{% tabs %}
{% highlight c# %}
-// Finds the first occurrence of specified text that matches case in RichTextBoxAdv document from current selection.
+// Finds the first occurrence of the specified text, matching case, in the SfRichTextBoxAdv document from the current selection.
TextSearchResult textSearchResult = richTextBoxAdv.Find("Panda", FindOptions.CaseSensitive);
+
// Selects the text search result.
richTextBoxAdv.Selection.Select(textSearchResult.Start, textSearchResult.End);
-// Applies Bold formatting for the current selection.
-richTextBoxAdv.Selection.CharacterFormat.Bold = true;
+// Applies bold formatting to the current selection.
+richTextBoxAdv.Selection.CharacterFormat.Bold = true;
{% endhighlight %}
+{% highlight VB %}
+' Finds the first occurrence of the specified text, matching case, in the SfRichTextBoxAdv document from the current selection.
+Dim textSearchResult As TextSearchResult = richTextBoxAdv.Find("Panda", FindOptions.CaseSensitive)
+
+' Selects the text search result.
+richTextBoxAdv.Selection.Select(textSearchResult.Start, textSearchResult.End)
+
+' Applies bold formatting to the current selection.
+richTextBoxAdv.Selection.CharacterFormat.Bold = True
+{% endhighlight %}
{% endtabs %}
-The following code example demonstrates how to find all occurrences of a particular pattern of text in the document and highlighting the result.
+The following code example demonstrates how to find all occurrences of a particular pattern of text in the document and highlight the result.
+
{% tabs %}
{% highlight c# %}
-// Finds all the words that starts with ‘S’ in RichTextBoxAdv document.
+// Finds all the words that start with 'S' in the SfRichTextBoxAdv document.
TextSearchResults textSearchResults = richTextBoxAdv.FindAll(new Regex(@"\bS\S*"), FindOptions.None);
-// If any text search results found.
+// If any text search results are found.
if (textSearchResults != null)
{
for (int j = 0; j < textSearchResults.Count; j++)
{
-
+
TextSearchResult textSearchResult = textSearchResults[j];
// Adds the search result text positions to the selection.
richTextBoxAdv.Selection.SelectionRanges.Add(textSearchResult.Start, textSearchResult.End);
}
-
-// Apply highlight color for the selection.
+
+ // Applies the highlight color to the selection.
richTextBoxAdv.Selection.CharacterFormat.HighlightColor = HighlightColor.Yellow;
}
+{% endhighlight %}
+{% highlight VB %}
+' Finds all the words that start with 'S' in the SfRichTextBoxAdv document.
+Dim textSearchResults As TextSearchResults = richTextBoxAdv.FindAll(New Regex("\bS\S*"), FindOptions.None)
+' If any text search results are found.
+If textSearchResults IsNot Nothing Then
+ For j As Integer = 0 To textSearchResults.Count - 1
-{% endhighlight %}
+ Dim textSearchResult As TextSearchResult = textSearchResults(j)
+
+ ' Adds the search result text positions to the selection.
+ richTextBoxAdv.Selection.SelectionRanges.Add(textSearchResult.Start, textSearchResult.End)
+ Next
+ ' Applies the highlight color to the selection.
+ richTextBoxAdv.Selection.CharacterFormat.HighlightColor = HighlightColor.Yellow
+End If
+
+{% endhighlight %}
{% endtabs %}
-## Replacing existing text
+## Replacing text
+
+You can replace a single occurrence or all occurrences of a particular text or pattern in a document with another text by performing a search operation. This helps you to modify the content easily.
+
+The following code example demonstrates how to replace a single occurrence of a text with another text in `SfRichTextBoxAdv`.
-You can replace a single occurrence or all occurrences of a particular text or pattern of text in a document with another text by performing search operation. This helps you to modify the contents easily.
-The following code example demonstrates how to replace a single occurrence of a text with another text in SfRichTextBoxAdv.
{% tabs %}
{% highlight c# %}
-// Finds the text "flat" that matches whole word in the document.
+// Finds the text "flat" that matches the whole word in the document.
TextSearchResult textSearchResult = richTextBoxAdv.Find("flat", FindOptions.WholeWord);
-// If any text search result found, replace it with the text "apartment".
+// If any text search result is found, replace it with the text "apartment".
if (textSearchResult != null)
textSearchResult.Replace("apartment");
-
{% endhighlight %}
+{% highlight VB %}
+' Finds the text "flat" that matches the whole word in the document.
+Dim textSearchResult As TextSearchResult = richTextBoxAdv.Find("flat", FindOptions.WholeWord)
+
+' If any text search result is found, replace it with the text "apartment".
+If textSearchResult IsNot Nothing Then
+ textSearchResult.Replace("apartment")
+End If
+{% endhighlight %}
{% endtabs %}
-The following code example demonstrates how to replace all occurrences of a particular text with another text in SfRichTextBoxAdv.
+The following code example demonstrates how to replace all occurrences of a particular text with another text in `SfRichTextBoxAdv`.
+
{% tabs %}
{% highlight c# %}
-// Finds the text "lift" that matches whole word in the document.
+// Finds the text "lift" that matches the whole word in the document.
TextSearchResults textSearchResults = richTextBoxAdv.FindAll("lift", FindOptions.WholeWord);
-// If any text search results found, replace all occurrences with the text "elevator".
-if(textSearchResults != null)
+// If any text search results are found, replace all occurrences with the text "elevator".
+if (textSearchResults != null)
textSearchResults.ReplaceAll("elevator");
-
{% endhighlight %}
+{% highlight VB %}
+' Finds the text "lift" that matches the whole word in the document.
+Dim textSearchResults As TextSearchResults = richTextBoxAdv.FindAll("lift", FindOptions.WholeWord)
+
+' If any text search results are found, replace all occurrences with the text "elevator".
+If textSearchResults IsNot Nothing Then
+ textSearchResults.ReplaceAll("elevator")
+End If
+{% endhighlight %}
{% endtabs %}
-## Options Pane
+## Options pane
+
+SfRichTextBoxAdv provides a built-in options pane to find text and navigate to the results, similar to the Microsoft Word application. It also provides a separate pane for advanced find and replace options.
+
+The following code example demonstrates how to show the default search pane in `SfRichTextBoxAdv` through command binding.
-The SfRichTextBoxAdv provides the built-in options pane support to find the text and navigate to text results similar to Microsoft Word application. It also provides separate pane for advanced find and replace options.
-The following code example demonstrates how to show the default search pane in SfRichTextBoxAdv through command binding.
{% tabs %}
{% highlight xaml %}
-
+
-
{% endhighlight %}
-
{% endtabs %}
-
+
+
+The following code example demonstrates how to show the advanced find pane in `SfRichTextBoxAdv` through command binding.
-The following code example demonstrates how to show the advance find pane in SfRichTextBoxAdv through command binding.
{% tabs %}
{% highlight xaml %}
-
-
-
+
+
{% endhighlight %}
{% endtabs %}
-
+
+
+The following code example demonstrates how to show the advanced replace pane in `SfRichTextBoxAdv` through command binding.
-The following code example demonstrates how to show the advance replace pane in SfRichTextBoxAdv through command binding.
{% tabs %}
{% highlight xaml %}
-
-
-
+
+
{% endhighlight %}
-
{% endtabs %}
-
+
+
+N> Currently, the SfRichTextBoxAdv does not support the options pane on Phone devices.
+
+## See also
-N> Currently, the SfRichTextBoxAdv does not support options pane in Phone device.
+- [Getting started with UWP RichTextBox](./Getting-Started)
+- [Selection in UWP RichTextBox](./Selection)
+- [Commands in UWP RichTextBox](./Commands)
\ No newline at end of file
diff --git a/Document-Processing/Word/Word-Processor/uwp/Hyperlink.md b/Document-Processing/Word/Word-Processor/uwp/Hyperlink.md
index b8bc347806..9785c478bc 100644
--- a/Document-Processing/Word/Word-Processor/uwp/Hyperlink.md
+++ b/Document-Processing/Word/Word-Processor/uwp/Hyperlink.md
@@ -4,12 +4,16 @@ description: Learn here all about Hyperlink support in Syncfusion UWP RichTextBo
platform: document-processing
control: SfRichTextBoxAdv
documentation: ug
-keywords: hyperlink
+keywords: hyperlink,insert-hyperlink,requestnavigate,screentip,editor-settings
---
# Hyperlink in UWP RichTextBox (SfRichTextBoxAdv)
-The SfRichTextBoxAdv supports hyperlink field similar to the Microsoft Word. You can link part of the document content to Internet or file location, mail address or any text.
+The [`SfRichTextBoxAdv`](https://help.syncfusion.com/cr/uwp/Syncfusion.SfRichTextBoxAdv.SfRichTextBoxAdv.html) supports the hyperlink field, similar to Microsoft Word. You can link part of the document content to the internet, a file location, a mail address, or any text.
+
+## Inserting a hyperlink
+
The following code example illustrates how to insert a hyperlink field.
+
{% tabs %}
{% highlight xaml %}
@@ -32,10 +36,10 @@ The following code example illustrates how to insert a hyperlink field.
paragraphAdv.Inlines.Add(new FieldBeginAdv());
// Appends the field code.
SpanAdv fieldCode = new SpanAdv();
-string url = "www.syncfusion.com";
+string url = "http://www.syncfusion.com";
fieldCode.Text = " HYPERLINK \"" + url + "\" ";
paragraphAdv.Inlines.Add(fieldCode);
-// Appends the field separator
+// Appends the field separator.
paragraphAdv.Inlines.Add(new FieldSeparatorAdv());
// Appends the field result.
SpanAdv fieldResult = new SpanAdv();
@@ -61,11 +65,11 @@ The following code example illustrates how to insert hyperlink field into SfRich
{% endtabs %}
-## Hyperlink ScreenTip
+## Hyperlink screen tip
-In RichTextBox control ToolTip (ScreenTip) shows some information or navigation link, when the mouse hovers over that hyperlink and it disappears when the mouse is moved away from that hyperlink. By default, it shows navigation link of that hyperlink and you can set the text you want to use for your ScreenTip.
+In the `SfRichTextBoxAdv` control, a ToolTip (ScreenTip) shows information or the navigation link when the mouse hovers over a hyperlink, and disappears when the mouse is moved away. By default, it shows the navigation link of the hyperlink; you can override this with custom ScreenTip text.
-
Without ScreenTipText
With ScreenTipText
+
Without ScreenTipText
With ScreenTipText
The following code example illustrates how to insert a hyperlink field with ScreenTip.
{% tabs %}
@@ -89,11 +93,11 @@ ParagraphAdv paragraphAdv = new ParagraphAdv();
paragraphAdv.Inlines.Add(new FieldBeginAdv());
// Appends the field code.
SpanAdv fieldCode = new SpanAdv();
-string url = "www.syncfusion.com";
+string url = "http://www.syncfusion.com";
string screenTip = "SfRichTextBox";
fieldCode.Text = " HYPERLINK \"" + url + "\" \\o \"" + screenTip + "\" ";
paragraphAdv.Inlines.Add(fieldCode);
-// Appends the field separator
+// Appends the field separator.
paragraphAdv.Inlines.Add(new FieldSeparatorAdv());
// Appends the field result.
SpanAdv fieldResult = new SpanAdv();
@@ -111,11 +115,11 @@ richTextBoxAdv.Document.Sections[0].Blocks.Add(paragraphAdv);
paragraphAdv.Inlines.Add(New FieldBeginAdv())
' Appends the field code.
Dim fieldCode As New SpanAdv()
-Dim url As String = "www.syncfusion.com"
+Dim url As String = "http://www.syncfusion.com"
Dim screenTip As String = "SfRichTextBox"
fieldCode.Text = (Convert.ToString(" HYPERLINK """) & url) + """ ""o """ + (screenTip) + """ "
paragraphAdv.Inlines.Add(fieldCode)
-' Appends the field separator
+' Appends the field separator.
paragraphAdv.Inlines.Add(New FieldSeparatorAdv())
' Appends the field result.
Dim fieldResult As New SpanAdv()
@@ -132,7 +136,8 @@ paragraphAdv.Inlines.Add(New FieldEndAdv())
The following code example illustrates how to insert hyperlink field with ScreenTip into RichTextBox Document through UI command.
{% tabs %}
{% highlight C# %}
-richTextBoxAdv.InsertHyperlinkCommand.Execute(new string[3] { "www.syncfusion.com", "SfRichTextBoxAdv", "SfRichTextBox" });
+// The string array parameters are: 0 = URL, 1 = display text, 2 = ScreenTip text.
+richTextBoxAdv.InsertHyperlinkCommand.Execute(new string[3] { "http://www.syncfusion.com", "SfRichTextBoxAdv", "SfRichTextBox" });
{% endhighlight %}
{% endtabs %}
@@ -143,7 +148,7 @@ The following section illustrates how to insert hyperlink field with ScreenTip i
{% capture codesnippet1 %}
{% tabs %}
{% highlight xaml %}
-
+
{% endhighlight %}
@@ -154,7 +159,7 @@ The following section illustrates how to insert hyperlink field with ScreenTip i
2. Enter the display text, URL link and ScreenTip text.
3. Click on OK to close the dialog box.
-
+
In the SfRichTextBoxAdv control, ToolTip (ScreenTip) will be shown by default when the mouse hovers over that hyperlink. You can disable ToolTip by using the [DisplayScreenTips](https://help.syncfusion.com/cr/uwp/Syncfusion.UI.Xaml.RichTextBoxAdv.EditorSettings.html#Syncfusion_UI_Xaml_RichTextBoxAdv_EditorSettings_DisplayScreenTips) property of [EditorSettings](https://help.syncfusion.com/cr/uwp/Syncfusion.UI.Xaml.RichTextBoxAdv.EditorSettings.html) class.
@@ -181,15 +186,17 @@ richTextBoxAdv.EditorSettings.DisplayScreenTips = False
{% endhighlight %}
{% endtabs %}
-N> ScreenTip option is supported from V20.4.0.38
+N> The `ScreenTip` option is supported starting from v20.4.0.38.
+
+## Hyperlink navigation
-## Hyperlink Navigation
+SfRichTextBoxAdv supports an event that fires when hyperlink navigation is requested. This allows you to easily customize the hyperlink navigation behavior.
+
+The following code example demonstrates how to customize hyperlink navigation in `SfRichTextBoxAdv`.
-The SfRichTextBoxAdv supports event to identify whenever hyperlink navigation is requested. This allows you to easily customize the hyperlink navigation functionality.
-The following code example demonstrates how to customize hyperlink navigation functionality for the SfRichTextBoxAdv instance.
{% tabs %}
{% highlight c# %}
-//Hooks the event handler for RequestNavigate event.
+// Hooks the event handler for the RequestNavigate event.
richTextBoxAdv.RequestNavigate += RichTextBoxAdv_RequestNavigate;
@@ -211,3 +218,9 @@ private async void RichTextBoxAdv_RequestNavigate(object obj, RequestNavigateEve
{% endhighlight %}
{% endtabs %}
+
+## See also
+
+- [Commands in UWP RichTextBox](./Commands)
+- [Selection in UWP RichTextBox](./Selection)
+- [Document Properties in UWP RichTextBox](./Document-Properties)
\ No newline at end of file