diff --git a/Document-Processing/Word/Word-Processor/wpf/Document-Properties.md b/Document-Processing/Word/Word-Processor/wpf/Document-Properties.md
index 27450ab11c..2e4ffb45c4 100644
--- a/Document-Processing/Word/Word-Processor/wpf/Document-Properties.md
+++ b/Document-Processing/Word/Word-Processor/wpf/Document-Properties.md
@@ -1,98 +1,98 @@
---
title: Document Properties in WPF RichTextBox control | Syncfusion
-description: Learn here all about Document Properties support in Syncfusion WPF RichTextBox (SfRichTextBoxAdv) control and more.
+description: Learn about the Document Properties support in Syncfusion WPF RichTextBox (SfRichTextBoxAdv) control and more.
platform: document-processing
control: SfRichTextBoxAdv
documentation: ug
keywords: Word count, paragraph count, page count, current page number.
---
# Document Properties in WPF RichTextBox (SfRichTextBoxAdv)
-[WPF RichTexBox](https://www.syncfusion.com/wpf-controls/richtextbox) keep tracking the statistics about your documents. These statistics contains information about word count, paragraph count and pages count.
+[WPF RichTextBox](https://www.syncfusion.com/wpf-controls/richtextbox) keeps track of the statistics about your documents. These statistics contain information about word count, paragraph count and pages count.
-## Word Count
-RichTextBox automatically counts the number of words in a document while you type. You can get the words count from [WordCount](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.Controls.RichTextBoxAdv.SfRichTextBoxAdv.html#Syncfusion_Windows_Controls_RichTextBoxAdv_SfRichTextBoxAdv_WordCount.html) property. The default value of this property is 0.
+## Word count
+RichTextBox automatically counts the number of words in a document while you type. You can get the words count from [WordCount](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.Controls.RichTextBoxAdv.SfRichTextBoxAdv.html#Syncfusion_Windows_Controls_RichTextBoxAdv_SfRichTextBoxAdv_WordCount) property. The default value of this property is 0.
The following sample code demonstrates how to get the total number of words in the document.
{% tabs %}
-{% highlight Xaml %}
-
+{% highlight xaml %}
+
{% endhighlight %}
-{% highlight C# %}
-int wordCount.Text = richTextBoxAdv.WordCount.ToString();
+{% highlight c# %}
+int wordCount = richTextBoxAdv.WordCount;
{% endhighlight %}
{% highlight VB %}
-wordCount.Text = richTextBoxAdv.WordCount.ToString()
+Dim wordCount As Integer = richTextBoxAdv.WordCount
{% endhighlight %}
{% endtabs %}
-## Paragraph Count
-RichTextBox automatically counts the number of paragraphs in a document while you type. You can get the paragraph count from [ParagraphCount](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.Controls.RichTextBoxAdv.SfRichTextBoxAdv.html#Syncfusion_Windows_Controls_RichTextBoxAdv_SfRichTextBoxAdv_ParagraphCount.html) property. The default value of this property is 0. Also, it ignores empty paragraphs.
+## Paragraph count
+RichTextBox automatically counts the number of paragraphs in a document while you type. You can get the paragraph count from [ParagraphCount](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.Controls.RichTextBoxAdv.SfRichTextBoxAdv.html#Syncfusion_Windows_Controls_RichTextBoxAdv_SfRichTextBoxAdv_ParagraphCount) property. The default value of this property is 0. Also, it ignores empty paragraphs.
The following sample code demonstrates how to get the total number of paragraphs in the document.
{% tabs %}
-{% highlight Xaml %}
-
+{% highlight xaml %}
+
{% endhighlight %}
-{% highlight C# %}
-int paragraphCount.Text = richTextBoxAdv.ParagraphCount.ToString();
+{% highlight c# %}
+int paragraphCount = richTextBoxAdv.ParagraphCount;
{% endhighlight %}
{% highlight VB %}
-paragraphCount.Text = richTextBoxAdv.ParagraphCount.ToString()
+Dim paragraphCount As Integer = richTextBoxAdv.ParagraphCount
{% endhighlight %}
{% endtabs %}
-## Page Count
-RichTextBox counts the number of pages in a document while you type. You can get the pages count from [PageCount](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.Controls.RichTextBoxAdv.SfRichTextBoxAdv.html#Syncfusion_Windows_Controls_RichTextBoxAdv_SfRichTextBoxAdv_ParagraphCount.html) property. The default value of this property is 0.
+## Page count
+RichTextBox counts the number of pages in a document while you type. You can get the page count from [PageCount](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.Controls.RichTextBoxAdv.SfRichTextBoxAdv.html#Syncfusion_Windows_Controls_RichTextBoxAdv_SfRichTextBoxAdv_PageCount) property. The default value of this property is 0.
The following sample code demonstrates how to get the total number of pages in the document.
{% tabs %}
-{% highlight Xaml %}
+{% highlight xaml %}
{% endhighlight %}
-{% highlight C# %}
+{% highlight c# %}
private void RichTextBoxAdv_SelectionChanged(object obj, SelectionChangedEventArgs args)
{
- pageCount.Text = richTextBoxAdv.PageCount.ToString();
+ PageCount.Text = richTextBoxAdv.PageCount.ToString();
}
{% endhighlight %}
{% highlight VB %}
Private Sub RichTextBoxAdv_SelectionChanged(ByVal obj As Object, ByVal args As SelectionChangedEventArgs)
-pageCount.Text = richTextBoxAdv.PageCount.ToString()
+PageCount.Text = richTextBoxAdv.PageCount.ToString()
End Sub
{% endhighlight %}
{% endtabs %}
-## Current Page number
-The [CurrentPageNumber](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.Controls.RichTextBoxAdv.SfRichTextBoxAdv.html#Syncfusion_Windows_Controls_RichTextBoxAdv_SfRichTextBoxAdv_CurrentPageNumber.html) property in the RichTextBox control returns the page number where the selection(cursor) is present.
+## Current page number
+The [CurrentPageNumber](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.Controls.RichTextBoxAdv.SfRichTextBoxAdv.html#Syncfusion_Windows_Controls_RichTextBoxAdv_SfRichTextBoxAdv_CurrentPageNumber) property in the RichTextBox control returns the page number where the selection(cursor) is present.
The following sample code demonstrates how to get current page number in the document.
{% tabs %}
-{% highlight Xaml %}
+{% highlight xaml %}
{% endhighlight %}
-{% highlight C# %}
+{% highlight c# %}
private void RichTextBoxAdv_SelectionChanged(object obj, SelectionChangedEventArgs args)
{
- currentPageNumber.Text = richTextBoxAdv.CurrentPageNumber.ToString();
+ CurrentPageNumber.Text = richTextBoxAdv.CurrentPageNumber.ToString();
}
{% endhighlight %}
{% highlight VB %}
Private Sub RichTextBoxAdv_SelectionChanged(ByVal obj As Object, ByVal args As SelectionChangedEventArgs)
- currentPageNumber.Text = richTextBoxAdv.CurrentPageNumber.ToString()
+ CurrentPageNumber.Text = richTextBoxAdv.CurrentPageNumber.ToString()
End Sub
{% endhighlight %}
@@ -100,5 +100,12 @@ End Sub
N> The above PageCount and CurrentPageNumber properties are not a dependency property. And it is not notifying for dynamic changes. So, get these properties value in
selection changed event.
-You can also explore our [WPF RichTextBox example](https://github.com/syncfusion/docx-editor-sdk-wpf-demos) to knows how to render and configure the editing tools.
+
+N> You can refer to our [WPF RichTextBox](https://www.syncfusion.com/docx-editor-sdk/wpf-docx-editor) feature tour page for its groundbreaking feature representations. You can also explore our [WPF RichTextBox example](https://github.com/syncfusion/docx-editor-sdk-wpf-demos) to know how to render and configure the editing tool.
+
+## See also
+
+- [Document Structure in WPF RichTextBox](./Document-Structure)
+- [Selection in WPF RichTextBox](./Selection)
+- [Commands in WPF RichTextBox](./Commands)
\ No newline at end of file
diff --git a/Document-Processing/Word/Word-Processor/wpf/Document-Structure.md b/Document-Processing/Word/Word-Processor/wpf/Document-Structure.md
index 7e21603d92..b121992e06 100644
--- a/Document-Processing/Word/Word-Processor/wpf/Document-Structure.md
+++ b/Document-Processing/Word/Word-Processor/wpf/Document-Structure.md
@@ -1,6 +1,6 @@
---
title: Document Structure in WPF RichTextBox control | Syncfusion
-description: Learn here all about Document Structure support in Syncfusion WPF RichTextBox (SfRichTextBoxAdv) control and more.
+description: Learn about the Document Structure support in Syncfusion WPF RichTextBox (SfRichTextBoxAdv) control and more.
platform: document-processing
control: SfRichTextBoxAdv
documentation: ug
@@ -10,4 +10,10 @@ keywords: document-structure

-N> You can refer to our [WPF RichTextBox](https://www.syncfusion.com/docx-editor-sdk/wpf-docx-editor) feature tour page for its groundbreaking feature representations.You can also explore our [WPF RichTextBox example](https://github.com/syncfusion/docx-editor-sdk-wpf-demos) to knows how to render and configure the editing tools.
\ No newline at end of file
+N> You can refer to our [WPF RichTextBox](https://www.syncfusion.com/docx-editor-sdk/wpf-docx-editor) feature tour page for its groundbreaking feature representations. You can also explore our [WPF RichTextBox example](https://github.com/syncfusion/docx-editor-sdk-wpf-demos) to know how to render and configure the editing tool.
+
+## See also
+
+- [Document Properties in WPF RichTextBox](./Document-Properties)
+- [Selection in WPF RichTextBox](./Selection)
+- [Commands in WPF RichTextBox](./Commands)
\ No newline at end of file
diff --git a/Document-Processing/Word/Word-Processor/wpf/Document-Styles.md b/Document-Processing/Word/Word-Processor/wpf/Document-Styles.md
index 0f6461eba0..d32da909da 100644
--- a/Document-Processing/Word/Word-Processor/wpf/Document-Styles.md
+++ b/Document-Processing/Word/Word-Processor/wpf/Document-Styles.md
@@ -1,6 +1,6 @@
---
title: Document Styles in WPF RichTextBox control | Syncfusion
-description: Learn here all about Document Styles support in Syncfusion WPF RichTextBox (SfRichTextBoxAdv) control and more.
+description: Learn about the Document Styles support in Syncfusion WPF RichTextBox (SfRichTextBoxAdv) control and more.
platform: document-processing
control: SfRichTextBoxAdv
documentation: ug
@@ -13,26 +13,20 @@ A style is a predefined set of table, numbering, paragraph, and character format
In [WPF RichTextBox](https://www.syncfusion.com/docx-editor-sdk/wpf-docx-editor), styles are created and added to a document programmatically or using the built-in Styles dialog.
A style in a document should have the following properties:
-### Name
-Name of the style. All styles in a document have a unique name, which is used as an identifier when applying the style.
-### Type
-Specifies the document elements that the style will target. For example, paragraph or character.
+**Name** – Name of the style. All styles in a document have a unique name, which is used as an identifier when applying the style.
-### Next
-Specifies the style that will be automatically applied to a new paragraph, which is created following a paragraph with the parent paragraph style applied.
+**Type** – Specifies the document elements that the style will target. For example, paragraph or character.
-### Link
-Provides a relation between the paragraph and character style.
+**Next** – Specifies the style that will be automatically applied to a new paragraph, which is created following a paragraph with the parent paragraph style applied.
-### CharacterFormat
-Specifies the properties of paragraph and character style.
+**Link** – Provides a relation between the paragraph and character style.
-### ParagraphFormat
-Specifies the properties of paragraph style.
+**CharacterFormat** – Specifies the properties of paragraph and character style.
-### BasedOn
-Specifies that the current style inherits the style set to this property. This is how hierarchical styles are defined. It can be optional.
+**ParagraphFormat** – Specifies the properties of paragraph style.
+
+**BasedOn** – Specifies that the current style inherits the style set to this property. This is how hierarchical styles are defined. It can be optional.
N> The style type should match the inherited style type. For example, it is not possible to have a character style inherit a paragraph style.
@@ -87,7 +81,7 @@ New styles are created and added to the style collection of the document. Here,
The following code example explains how to create new style dialog through command binding.
{% tabs %}
{% highlight xaml %}
-
+
{% endhighlight %}
{% endtabs %}
@@ -99,7 +93,7 @@ You can modify a style directly using the ShowStylesDialogCommand in SfRichTextB
The following code example explains how to modify the style dialog through command binding.
{% tabs %}
{% highlight xaml %}
-
+
{% endhighlight %}
{% endtabs %}
@@ -119,7 +113,7 @@ When there is no selection, styles of Linked type will change the values of the
The following code example explains how to apply style through command binding.
{% tabs %}
{% highlight xaml %}
-
+
{% endhighlight %}
{% endtabs %}
@@ -129,8 +123,14 @@ It will remove all the formatting from the selection leaving only the normal unf
The following code example explains how to clear the formatting of text through command binding.
{% tabs %}
{% highlight xaml %}
-
+
{% endhighlight %}
{% endtabs %}
-N> You can refer to our [WPF RichTextBox](https://www.syncfusion.com/docx-editor-sdk/wpf-docx-editor) feature tour page for its groundbreaking feature representations.You can also explore our [WPF RichTextBox example](https://github.com/syncfusion/docx-editor-sdk-wpf-demos) to knows how to render and configure the editing tools.
+N> You can refer to our [WPF RichTextBox](https://www.syncfusion.com/docx-editor-sdk/wpf-docx-editor) feature tour page for its groundbreaking feature representations. You can also explore our [WPF RichTextBox example](https://github.com/syncfusion/docx-editor-sdk-wpf-demos) to know how to render and configure the editing tool.
+
+## See also
+
+- [Document Properties in WPF RichTextBox](./Document-Properties)
+- [Selection in WPF RichTextBox](./Selection)
+- [Commands in WPF RichTextBox](./Commands)
\ No newline at end of file
diff --git a/Document-Processing/Word/Word-Processor/wpf/FAQ-Section/How-to-export-the-inserted-image-as-an-Embedded-image-in-HTML-in-SfRichTextBoxAdv.md b/Document-Processing/Word/Word-Processor/wpf/FAQ-Section/How-to-export-the-inserted-image-as-an-Embedded-image-in-HTML-in-SfRichTextBoxAdv.md
index 70480525ae..896d3ea89f 100644
--- a/Document-Processing/Word/Word-Processor/wpf/FAQ-Section/How-to-export-the-inserted-image-as-an-Embedded-image-in-HTML-in-SfRichTextBoxAdv.md
+++ b/Document-Processing/Word/Word-Processor/wpf/FAQ-Section/How-to-export-the-inserted-image-as-an-Embedded-image-in-HTML-in-SfRichTextBoxAdv.md
@@ -1,6 +1,6 @@
---
title: Export image as Embedded in HTML in WPF SfRichTextBoxAdv | Syncfusion
-description: Learn here all about how to export the inserted image as an Embedded image in HTML in Syncfusion WPF SfRichTextBoxAdv and more.
+description: Learn how to export the inserted image as an embedded image in HTML in Syncfusion WPF SfRichTextBoxAdv and more.
platform: document-processing
control: SfRichTextBoxAdv
documentation: ug
@@ -11,7 +11,7 @@ keywords: embedded-image-html
This page explains how to export the inserted image as an Embedded image in HTML in [WPF RichTextBox](https://www.syncfusion.com/docx-editor-sdk/wpf-docx-editor) (SfRichTextBoxAdv).
-In the SfRichTextBoxAdv control, we offer an option to specify HTML export settings. By utilizing the [ImageNodeVisitedEvent](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.Controls.RichTextBoxAdv.ImageNodeVisitedEventArgs.html) event of the [HtmlImportExportSettings](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.Controls.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.
+In the SfRichTextBoxAdv control, the control provides an option to specify HTML export settings. By utilizing the [ImageNodeVisited](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.Controls.RichTextBoxAdv.ImageNodeVisitedEventArgs.html) event of the [HtmlImportExportSettings](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.Controls.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.
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
+
+- [WPF RichTextBox Feature Tour](https://www.syncfusion.com/docx-editor-sdk/wpf-docx-editor)
+- [WPF RichTextBox Examples](https://github.com/syncfusion/docx-editor-sdk-wpf-demos)
\ No newline at end of file
diff --git a/Document-Processing/Word/Word-Processor/wpf/FAQ-Section/How-to-identify-whether-the-viewer-is-scrolled-to-the-bottom-of-the-SfRichTextBoxAdv.md b/Document-Processing/Word/Word-Processor/wpf/FAQ-Section/How-to-identify-whether-the-viewer-is-scrolled-to-the-bottom-of-the-SfRichTextBoxAdv.md
index a5e2dba2fa..1e2da6ddc0 100644
--- a/Document-Processing/Word/Word-Processor/wpf/FAQ-Section/How-to-identify-whether-the-viewer-is-scrolled-to-the-bottom-of-the-SfRichTextBoxAdv.md
+++ b/Document-Processing/Word/Word-Processor/wpf/FAQ-Section/How-to-identify-whether-the-viewer-is-scrolled-to-the-bottom-of-the-SfRichTextBoxAdv.md
@@ -1,19 +1,19 @@
---
-title: Detect viewer scrolled to bottom in WPF SfRichTextBoxAdv | Syncfusion
-description: Learn here all about how to identify whether the viewer is scrolled to the bottom in Syncfusion WPF SfRichTextBoxAdv and more.
+title: Detect Viewer Scrolls to the Bottom in SfRichTextBoxAdv | Syncfusion
+description: Learn how to identify whether the viewer is scrolled to the bottom in Syncfusion WPF SfRichTextBoxAdv and more.
platform: document-processing
control: SfRichTextBoxAdv
documentation: ug
keywords: scroll-to-bottom
---
-# Detect viewer scrolled to bottom in WPF SfRichTextBoxAdv
+# Detect When the Viewer Scrolls to the Bottom in SfRichTextBoxAdv
This page explains how to identify whether the viewer is scrolled to the bottom in [WPF RichTextBox](https://www.syncfusion.com/docx-editor-sdk/wpf-docx-editor) (SfRichTextBoxAdv).
-SfRichTextBoxAdv scrollbars can be accessed through the [VerticalScrollBar](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.Controls.RichTextBoxAdv.SfRichTextBoxAdv.html#Syncfusion_Windows_Controls_RichTextBoxAdv_SfRichTextBoxAdv_VerticalScrollBar) and [HorizontalScrollBar](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.Controls.RichTextBoxAdv.SfRichTextBoxAdv.html#Syncfusion_Windows_Controls_RichTextBoxAdv_SfRichTextBoxAdv_HorizontalScrollBar) properties of [SfRichTextBoxAdv](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.Controls.RichTextBoxAdv.SfRichTextBoxAdv.html) class. Using these properties, we can identify when the document is scrolled to the bottom of the control.
+SfRichTextBoxAdv scrollbars can be accessed through the [VerticalScrollBar](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.Controls.RichTextBoxAdv.SfRichTextBoxAdv.html#Syncfusion_Windows_Controls_RichTextBoxAdv_SfRichTextBoxAdv_VerticalScrollBar) and [HorizontalScrollBar](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.Controls.RichTextBoxAdv.SfRichTextBoxAdv.html#Syncfusion_Windows_Controls_RichTextBoxAdv_SfRichTextBoxAdv_HorizontalScrollBar) properties of [SfRichTextBoxAdv](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.Controls.RichTextBoxAdv.SfRichTextBoxAdv.html) class. Using these properties, you can identify when the document is scrolled to the bottom of the control.
-We can use the ValueChanged event of the [VerticalScrollBar](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.Controls.RichTextBoxAdv.SfRichTextBoxAdv.html#Syncfusion_Windows_Controls_RichTextBoxAdv_SfRichTextBoxAdv_VerticalScrollBar) for this purpose. Check if the scroll bar's value equals the [VerticalScrollBar](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.Controls.RichTextBoxAdv.SfRichTextBoxAdv.html#Syncfusion_Windows_Controls_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.
+You can use the ValueChanged event of the [VerticalScrollBar](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.Controls.RichTextBoxAdv.SfRichTextBoxAdv.html#Syncfusion_Windows_Controls_RichTextBoxAdv_SfRichTextBoxAdv_VerticalScrollBar) for this purpose. Check if the scroll bar's value equals the VerticalScrollBar Maximum property value. If these values are equal, then the vertical scroll bar has been 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.
@@ -41,9 +41,14 @@ The following code example illustrates to identify whether the viewer is scrolle
{
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.
+ //When the scroll bar value and its maximum value are same.
+ //Then scroll reached the bottom of the control.
}
}
{% endhighlight %}
-{% endtabs %}
\ No newline at end of file
+{% endtabs %}
+
+## See also
+
+- [WPF RichTextBox Feature Tour](https://www.syncfusion.com/docx-editor-sdk/wpf-docx-editor)
+- [WPF RichTextBox Examples](https://github.com/syncfusion/docx-editor-sdk-wpf-demos)
\ No newline at end of file
diff --git a/Document-Processing/Word/Word-Processor/wpf/FAQ-Section/How-to-paste-WordDocument-from-DocIO-in-SfRichTextBoxAdv.md b/Document-Processing/Word/Word-Processor/wpf/FAQ-Section/How-to-paste-WordDocument-from-DocIO-in-SfRichTextBoxAdv.md
index d8a15ef17f..022e0ac88f 100644
--- a/Document-Processing/Word/Word-Processor/wpf/FAQ-Section/How-to-paste-WordDocument-from-DocIO-in-SfRichTextBoxAdv.md
+++ b/Document-Processing/Word/Word-Processor/wpf/FAQ-Section/How-to-paste-WordDocument-from-DocIO-in-SfRichTextBoxAdv.md
@@ -1,79 +1,88 @@
---
-title: How to paste WordDocument from DocIO in the WPF SfRichTextBoxAdv. | Syncfusion
-description: Learn here all about how to paste WordDocument from .NET Word library (DocIO) in Syncfusion WPF SfRichTextBoxAdv and more.
+title: Paste WordDocument from DocIO in WPF SfRichTextBoxAdv | Syncfusion
+description: Learn how to paste a Word document from .NET Word library (DocIO) in Syncfusion WPF SfRichTextBoxAdv and more.
platform: document-processing
control: SfRichTextBoxAdv
documentation: ug
keywords: paste-WordDocument-from-DocIO
---
-# Paste WordDocument from .NET Word library (DocIO) in the WPF SfRichTextBoxAdv
+# Paste a Word Document from .NET Word Library into 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 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.
-Using this feature, you can achieve below things by pasting WordDocument into the [WPF RichTextBox](https://www.syncfusion.com/docx-editor-sdk/wpf-docx-editor) (SfRichTextBoxAdv) at current selection:
+Using this feature, you can achieve the following by pasting WordDocument into the [WPF RichTextBox](https://www.syncfusion.com/docx-editor-sdk/wpf-docx-editor) (SfRichTextBoxAdv) at 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
-* 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/file-formats/docio/word-file-formats) (DOC, DOCX) and an [HTML](https://help.syncfusion.com/file-formats/docio/html) 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.
-* 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 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.
-The following code example illustrates how to design a table with set of formatting using DocIO and paste it into the SfRichTextBoxAdv using WordDocument.
+The following code example illustrates how to design a table with a set of formatting using DocIO and paste it into the SfRichTextBoxAdv using WordDocument.
{% tabs %}
{% highlight c# %}
-///Paste the WordDocument into SfRichTextBoxAdv.
+//Paste the WordDocument into SfRichTextBoxAdv.
WordDocument document = CreateTable();
-SfRichTextBoxAdv.PasteCommand.Execute(document,richTextBoxAdv);
+SfRichTextBoxAdv.PasteCommand.Execute(document, richTextBoxAdv);
///
/// The following helper method illustrates how to create table in DocIO.
///
-Private WordDocument CreateTable()
+private WordDocument CreateTable()
{
-///Creates an instance of WordDocument class
+//Creates an instance of WordDocument class
WordDocument document = new WordDocument();
-///Adds a section into Word document
+//Adds a section into Word document
IWSection section = document.AddSection();
-///Adds a new table into Word document
+//Adds a new table into Word document
IWTable table = section.AddTable();
-///Specifies the total number of rows & columns
+//Specifies the total number of rows & columns
table.ResetCells(10, 6);
-///Iterates the rows of the table
+//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
+ //Iterates through the cells of rows
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.
+ //set background color for cell.
wTableCell.CellFormat.BackColor = Color.Blue;
- ///Set border type for tablecell borders
+ //Set border type for tablecell borders
wTableCell.CellFormat.Borders.BorderType = BorderStyle.Single;
- ///Set color for tablecell borders
+ //Set color for tablecell borders
wTableCell.CellFormat.Borders.Color = Color.Red;
wTableCell.CellFormat.Borders.Top.Color = Color.Red;
wTableCell.CellFormat.Borders.Bottom.Color = Color.Red;
wTableCell.CellFormat.Borders.Right.Color = Color.Red;
wTableCell.CellFormat.Borders.Left.Color = Color.Red;
- ///Set line width for tablecell borders.
+ //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. For example, if a table is created using WordDocument with multiple formats applied and then pasted into the SfRichTextBoxAdv control, performing Undo will remove the inserted table. Performing Redo will insert the table again. Since we are creating the table outside of SfRichTextBoxAdv, it will not maintain history.
+
+N> This feature is supported from v22.2.5.
+
+## See also
+
+- [PasteCommand API Reference](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.Controls.RichTextBoxAdv.SfRichTextBoxAdv.html#Syncfusion_Windows_Controls_RichTextBoxAdv_SfRichTextBoxAdv_PasteCommand)
+- [.NET Word Library (DocIO) Documentation](https://help.syncfusion.com/file-formats/docio/overview)
+- [WPF RichTextBox Feature Tour](https://www.syncfusion.com/docx-editor-sdk/wpf-docx-editor)
+- [WPF RichTextBox Examples](https://github.com/syncfusion/docx-editor-sdk-wpf-demos)
diff --git a/Document-Processing/Word/Word-Processor/wpf/FAQ-Section/How-to-use-SfRichTextBoxAdv-as-a-standard-RichTextBox.md b/Document-Processing/Word/Word-Processor/wpf/FAQ-Section/How-to-use-SfRichTextBoxAdv-as-a-standard-RichTextBox.md
index a077ac60d1..44898f1047 100644
--- a/Document-Processing/Word/Word-Processor/wpf/FAQ-Section/How-to-use-SfRichTextBoxAdv-as-a-standard-RichTextBox.md
+++ b/Document-Processing/Word/Word-Processor/wpf/FAQ-Section/How-to-use-SfRichTextBoxAdv-as-a-standard-RichTextBox.md
@@ -1,5 +1,5 @@
---
-title: How to use SfRichTextBoxAdv as a standard RichTextBox. | Syncfusion
+title: How to use WPF SfRichTextBoxAdv as a standard RichTextBox | Syncfusion
description: Learn how to use WPF SfRichTextBoxAdv as a standard RichTextBox along with its core key features and usage.
platform: document-processing
control: SfRichTextBoxAdv
@@ -7,7 +7,7 @@ documentation: ug
keywords: use-sfrichtextboxadv-like-richtextbox
---
-# Use SfRichTextBoxAdv as a standard RichTextBox
+# Use WPF SfRichTextBoxAdv as a Standard RichTextBox
Use the following code to configure the SfRichTextBoxAdv control as a standard RichTextBox with rich text formatting options.
@@ -112,4 +112,9 @@ Use the following code to configure the SfRichTextBoxAdv control as a standard R
When the application is executed, the standard RichTextBox control is displayed as illustrated below.

-N> [View Sample in GitHub](https://github.com/SyncfusionExamples/WPF-RichTextBox-Examples/tree/main/Samples/Standard%20RichTextBox).
\ No newline at end of file
+N> [View Sample in GitHub](https://github.com/SyncfusionExamples/WPF-RichTextBox-Examples/tree/main/Samples/Standard%20RichTextBox).
+
+## See also
+
+- [WPF RichTextBox Feature Tour](https://www.syncfusion.com/docx-editor-sdk/wpf-docx-editor)
+- [WPF RichTextBox Examples](https://github.com/syncfusion/docx-editor-sdk-wpf-demos)
\ No newline at end of file
diff --git a/Document-Processing/Word/Word-Processor/wpf/FAQ-Section/Why-does-out-of-memory-exception-throw-on-opening-large-size-documents-in-SfRichTextBoxAdv.md b/Document-Processing/Word/Word-Processor/wpf/FAQ-Section/Why-does-out-of-memory-exception-throw-on-opening-large-size-documents-in-SfRichTextBoxAdv.md
index 54a09153a7..422e997b49 100644
--- a/Document-Processing/Word/Word-Processor/wpf/FAQ-Section/Why-does-out-of-memory-exception-throw-on-opening-large-size-documents-in-SfRichTextBoxAdv.md
+++ b/Document-Processing/Word/Word-Processor/wpf/FAQ-Section/Why-does-out-of-memory-exception-throw-on-opening-large-size-documents-in-SfRichTextBoxAdv.md
@@ -1,17 +1,31 @@
---
-title: Opening large size documents in WPF SfRichTextBoxAdv | Syncfusion
-description: Understand why out of memory exceptions occur in Syncfusion WPF SfRichTextBoxAdv when opening large documents and how to resolve them.
+title: Out of memory exception in WPF SfRichTextBoxAdv | Syncfusion
+description: Learn why an OutOfMemoryException occurs when opening large documents in the WPF SfRichTextBoxAdv control and the recommended workarounds to avoid it.
platform: document-processing
control: SfRichTextBoxAdv
documentation: ug
keywords: out-of-memory-exception
---
-# Opening large size documents in WPF SfRichTextBoxAdv control
+# Why does an out of memory exception occur in WPF SfRichTextBoxAdv?
-This page explains Why does out of memory exception throw on opening large size documents in [WPF RichTextBox](https://www.syncfusion.com/docx-editor-sdk/wpf-docx-editor) (SfRichTextBoxAdv) control and more details.
+This page explains why an `OutOfMemoryException` is thrown when opening large documents in the [WPF RichTextBox](https://www.syncfusion.com/docx-editor-sdk/wpf-docx-editor) (SfRichTextBoxAdv) control and provides guidance on how to avoid it.
-## Why does out of memory exception throw on opening large size documents in WPF RichTextBox (SfRichTextBoxAdv)
+## Cause
-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.
+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.
\ No newline at end of file