From d7e99c94dd19b82c2b990142ba520378bd30cf5b Mon Sep 17 00:00:00 2001 From: Kalaivannan-Ganesan <93248069+Kalaivannan-Ganesan@users.noreply.github.com> Date: Wed, 22 Jul 2026 14:48:01 +0530 Subject: [PATCH 1/6] Addressed the error logs of Background --- .../Word/Word-Processor/wpf/Background.md | 37 +++++++++---------- 1 file changed, 18 insertions(+), 19 deletions(-) diff --git a/Document-Processing/Word/Word-Processor/wpf/Background.md b/Document-Processing/Word/Word-Processor/wpf/Background.md index 98ae886ea5..2e94f544f4 100644 --- a/Document-Processing/Word/Word-Processor/wpf/Background.md +++ b/Document-Processing/Word/Word-Processor/wpf/Background.md @@ -1,6 +1,6 @@ --- title: Background in WPF RichTextBox control | Syncfusion -description: Learn here all about Background support in Syncfusion WPF RichTextBox (SfRichTextBoxAdv) control and more. +description: Learn about the Background support in Syncfusion WPF RichTextBox (SfRichTextBoxAdv) control and more. platform: document-processing control: SfRichTextBoxAdv documentation: ug @@ -8,7 +8,7 @@ keywords: background --- # Setting Background for WPF RichTextBox -The [WPF RichTextBox](https://www.syncfusion.com/docx-editor-sdk/wpf-docx-editor) control allows you to change background color of the control. A background of a control is represented by `Background` property of `SfRichTextBoxAdv` class. The default value of this property is black. +The [WPF RichTextBox](https://www.syncfusion.com/docx-editor-sdk/wpf-docx-editor) control allows you to change background color of the control. A background of a control is represented by [`Background`](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.Controls.RichTextBoxAdv.SfRichTextBoxAdv.html#Syncfusion_Windows_Controls_RichTextBoxAdv_SfRichTextBoxAdv_Background) property of `SfRichTextBoxAdv` class. The default value of this property is black. The following code illustrates how to apply color as background to the document. @@ -31,25 +31,25 @@ richTextBoxAdv.Background = new SolidColorBrush(Color.FromRgb(102, 153, 204)); Dim richTextBoxAdv As New SfRichTextBoxAdv() ' Sets the control background color. -richTextBoxAdv.Background = new SolidColorBrush(Color.FromRgb(102, 153, 204)) +richTextBoxAdv.Background = New SolidColorBrush(Color.FromRgb(102, 153, 204)) {% endhighlight %} {% endtabs %} -Pages layout +**Pages layout:** ![Changing Background color of Page Layout in WPF RichTextBox](Image_images/wpf-richtextbox-page-layout-background.PNG) -Continuous layout +**Continuous layout:** ![Changing Background color of Continuous Layout in WPF RichTextBox](Image_images/wpf-richtextbox-continuous-layout-background.PNG) -Block layout +**Block layout:** The block layout always inherits the control background color. ![Changing Background color of Block Layout in WPF RichTextBox](Image_images/wpf-richtextbox-block-layout-background.PNG) -### How to override the document background in continuous layout type? -By default, the document background properties will be applied when the `LayoutType` is continuous. You can suppress the document background and apply the control background by setting `OverridesDocumentBackground` property to true. The default value of this property is false. +## How to override the document background in continuous layout type? +By default, the document background properties will be applied when the `LayoutType` is continuous. You can suppress the document background and apply the control background by setting [`OverridesDocumentBackground`](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.Controls.RichTextBoxAdv.SfRichTextBoxAdv.html#Syncfusion_Windows_Controls_RichTextBoxAdv_SfRichTextBoxAdv_OverridesDocumentBackground) property to true. The default value of this property is false. N> This property is valid only when the `LayoutType` is continuous. @@ -66,7 +66,7 @@ The following code illustrates how to override the document background color. SfRichTextBoxAdv richTextBoxAdv = new SfRichTextBoxAdv(); // Sets the control background color richTextBoxAdv.Background = new SolidColorBrush(Color.FromRgb(102, 153, 204)); -// Sets the layout type as continous +// Sets the layout type as continuous richTextBoxAdv.LayoutType = LayoutType.Continuous; //Enable the OverridesDocumentBackground property richTextBoxAdv.OverridesDocumentBackground = true; @@ -77,8 +77,8 @@ richTextBoxAdv.OverridesDocumentBackground = true; ' Initializes a new instance of RichTextBoxAdv. Dim richTextBoxAdv As New SfRichTextBoxAdv() ' Sets the control background color. -richTextBoxAdv.Background = new SolidColorBrush(Color.FromRgb(102, 153, 204)) -' Sets the layout type as continous +richTextBoxAdv.Background = New SolidColorBrush(Color.FromRgb(102, 153, 204)) +' Sets the layout type as continuous richTextBoxAdv.LayoutType = LayoutType.Continuous ' Enable the OverridesDocumentBackground property richTextBoxAdv.OverridesDocumentBackground = true @@ -88,15 +88,16 @@ richTextBoxAdv.OverridesDocumentBackground = true {% endtabs %} -Continuous layout: +**Continuous layout:** ![Changing Background color of Continuous Layout in WPF RichTextBox](Image_images/wpf-richtextbox-continous-background.PNG) ## Setting Background for Document Pages The RichTextBox control allows you to change background color of the document pages. A background of a document is represented by `Background` property of `DocumentAdv` class. The default value of this property is white. -N> 1. This property is independent for a document. So the background will change when the document is changed. -N> 2. To maintain same background for all documents, you can reset this property in DocumentChanged event. +N> 1. This API is supported starting from release version v17.4.0.39. +N> 2. This property is independent for a document. So the background will change when the document is changed. +N> 3. To maintain same background for all documents, you can reset this property in DocumentChanged event. The following code illustrates how to apply color as background to the document pages. @@ -121,12 +122,10 @@ richTextBoxAdv.Document.Background.Color = Color.FromRgb(102, 153, 204) {% endtabs %} - -Pages layout: +**Pages layout:** ![Changing Background color of Page Layout in WPF RichTextBox](Image_images/wpf-richtextbox-pages-background.PNG) -Continuous layout: +**Continuous layout:** ![Changing Background color of Continuous Layout in WPF RichTextBox](Image_images/wpf-richtextbox-continous-background.PNG) -N> This API is supported starting from release version v17.4.0.X. -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 also explore our [WPF RichTextBox example](https://github.com/syncfusion/docx-editor-sdk-wpf-demos) to know how to render and configure the editing tools. From 793d69e874a721b4a7eb7683f305664274719683 Mon Sep 17 00:00:00 2001 From: Kalaivannan-Ganesan <93248069+Kalaivannan-Ganesan@users.noreply.github.com> Date: Wed, 22 Jul 2026 15:25:06 +0530 Subject: [PATCH 2/6] Added the missed API names --- Document-Processing/Word/Word-Processor/wpf/Background.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Document-Processing/Word/Word-Processor/wpf/Background.md b/Document-Processing/Word/Word-Processor/wpf/Background.md index 2e94f544f4..0eee97ff7c 100644 --- a/Document-Processing/Word/Word-Processor/wpf/Background.md +++ b/Document-Processing/Word/Word-Processor/wpf/Background.md @@ -93,7 +93,7 @@ richTextBoxAdv.OverridesDocumentBackground = true ## Setting Background for Document Pages -The RichTextBox control allows you to change background color of the document pages. A background of a document is represented by `Background` property of `DocumentAdv` class. The default value of this property is white. +The RichTextBox control allows you to change background color of the document pages. A background of a document is represented by [`Background`](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.Controls.RichTextBoxAdv.DocumentAdv.html#Syncfusion_Windows_Controls_RichTextBoxAdv_DocumentAdv_Background) property of `DocumentAdv` class. The default value of this property is white. N> 1. This API is supported starting from release version v17.4.0.39. N> 2. This property is independent for a document. So the background will change when the document is changed. From faa9c9920ceb959a5247efb9af12b9418b6a5061 Mon Sep 17 00:00:00 2001 From: Kalaivannan-Ganesan <93248069+Kalaivannan-Ganesan@users.noreply.github.com> Date: Wed, 22 Jul 2026 16:10:57 +0530 Subject: [PATCH 3/6] Addressed the clipboard error logs --- .../Word/Word-Processor/wpf/Clipboard.md | 29 ++++++++++++------- 1 file changed, 19 insertions(+), 10 deletions(-) diff --git a/Document-Processing/Word/Word-Processor/wpf/Clipboard.md b/Document-Processing/Word/Word-Processor/wpf/Clipboard.md index 412188a68f..08cf01879c 100644 --- a/Document-Processing/Word/Word-Processor/wpf/Clipboard.md +++ b/Document-Processing/Word/Word-Processor/wpf/Clipboard.md @@ -1,6 +1,6 @@ --- title: Clipboard in WPF RichTextBox control | Syncfusion -description: Learn here all about Clipboard support in Syncfusion WPF RichTextBox (SfRichTextBoxAdv) control and more. +description: Learn about the Clipboard support in Syncfusion WPF RichTextBox (SfRichTextBoxAdv) control and more. platform: document-processing control: SfRichTextBoxAdv documentation: ug @@ -16,22 +16,31 @@ The [WPF RichTextBox](https://www.syncfusion.com/docx-editor-sdk/wpf-docx-editor * Image. -## UI Command to access clipboard operations +## UI Commands to Access Clipboard Operations The following code example demonstrates how to bind commands for accessing clipboard operations. {% tabs %} {% highlight xaml %} - -