diff --git a/Document-Processing/Word/Word-Processor/wpf/Background.md b/Document-Processing/Word/Word-Processor/wpf/Background.md index 98ae886ea5..0eee97ff7c 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:**  -Continuous layout +**Continuous layout:**  -Block layout +**Block layout:** The block layout always inherits the control background color.  -### 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:**  ## 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 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:**  -Continuous layout: +**Continuous layout:**  -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. diff --git a/Document-Processing/Word/Word-Processor/wpf/Clipboard.md b/Document-Processing/Word/Word-Processor/wpf/Clipboard.md index 412188a68f..51af16ab0d 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,7 +16,7 @@ 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. @@ -33,5 +33,10 @@ The following code example demonstrates how to bind commands for accessing clipb {% endhighlight %} {% endtabs %} -N> In order to cut, copy or paste, the standard keyboard shortcuts such as CTRL + X, CTRL + C, CTRL + V can also be used. -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> In order to cut, copy, or paste, the standard keyboard shortcuts such as CTRL+X, CTRL+C, and CTRL+V can also be used. + +## 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) diff --git a/Document-Processing/Word/Word-Processor/wpf/Commands.md b/Document-Processing/Word/Word-Processor/wpf/Commands.md index a1382533c1..60bef0a78b 100644 --- a/Document-Processing/Word/Word-Processor/wpf/Commands.md +++ b/Document-Processing/Word/Word-Processor/wpf/Commands.md @@ -1,6 +1,6 @@ --- title: Commands in WPF RichTextBox control | Syncfusion -description: Learn here all about Commands support in Syncfusion WPF RichTextBox (SfRichTextBoxAdv) control and more. +description: Learn about the Commands support in the Syncfusion WPF RichTextBox (SfRichTextBoxAdv) control and how Commands can be used within the editor. platform: document-processing control: SfRichTextBoxAdv documentation: ug @@ -30,7 +30,7 @@ Commands are a way to handle user interface (UI) actions. They are a loosely cou * Document Styles – Create, modify, apply and clear style. -## UI Command to access character formatting +## UI Command to Access Character Formatting The following code example demonstrates how to bind commands for applying character format. @@ -49,7 +49,7 @@ The following code example demonstrates how to bind commands for applying charac The following code example demonstrates how to bind commands with parameter. {% tabs %} {% highlight xaml %} - + {% endhighlight %} {% endtabs %} @@ -83,6 +83,17 @@ The following table contains the list of available UI Commands in SfRichTextBoxA
ApplyStyleCommand
+Represents the command, which requests to apply style for the selected paragraph.
+Name of the Style
+AfterSpacingCommand
ClearFormattingCommand
+Represents the command, which requests to remove formatting from the selected paragraph.
+NA
+BackSpaceKeyCommand
IgnoreAllSpellingErrorsCommand
Represents the command that ignores all the occurrence of a selected misspelled word.
+Represents the command that ignores all the occurrences of a selected misspelled word.
The misspelled word to be ignored.
@@ -1291,6 +1313,28 @@ The following table contains the list of available UI Commands in SfRichTextBoxAShowStyleDialogCommand
+Represents the command that shows the create style dialog.
+NA
+ShowStylesDialogCommand
+Represents the command that shows the modify style dialog.
+NA
+ShowTableDialogCommand
NA
ShowStyleDialogCommand
-Represents the command that shows the create style dialog.
-NA
-ShowStylesDialogCommand
-Represents the command that shows the modify style dialog.
-NA
-ApplyStyleCommand
-Represents the command, which requests to apply style for the selected paragraph.
-Name of the Style
-ClearFormattingCommand
-Represents the command, which requests to remove formatting from the selected paragraph.
-NA
-