Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 18 additions & 9 deletions Document-Processing/Word/Word-Processor/wpf/Spell-Check.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ description: Learn here all about Spell Check support in Syncfusion WPF RichText
platform: document-processing
control: SfRichTextBoxAdv
documentation: ug
keywords: spell-check
keywords: spell-check,spelling,dictionary,multilingual,language
---
# Spell Check in WPF RichTextBox (SfRichTextBoxAdv)

The [WPF RichTextBox](https://www.syncfusion.com/docx-editor-sdk/wpf-docx-editor) (SfRichTextBoxAdv) provides support for checking spelling mistakes in the rich text document content. It also supports enabling the following spell checking options.
The [WPF RichTextBox](https://www.syncfusion.com/docx-editor-sdk/wpf-docx-editor) (SfRichTextBoxAdv) provides support for checking spelling mistakes in the rich text document content through the [SpellChecker](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.Controls.RichTextBoxAdv.SfRichTextBoxAdv.html#Syncfusion_Windows_Controls_RichTextBoxAdv_SfRichTextBoxAdv_SpellChecker) property of type [SpellChecker](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.Controls.RichTextBoxAdv.SpellChecker.html). It also supports enabling the following spell checking options.

* Ignore words in UPPERCASE.

Expand Down Expand Up @@ -64,7 +64,7 @@ richTextBoxAdv.SpellChecker.IgnoreURIs = True

## Adding Custom Dictionaries

The SfRichTextBoxAdv also supports defining custom dictionaries that can be referred while check spelling mistakes. The SfRichTextBoxAdv ignores words that are defined in the referenced custom dictionaries. The SfRichTextBoxAdv supports option for adding misspelled word to dictionary. This option will be enabled only when at least one custom dictionary is defined. The misspelled words will be added to first item in the custom dictionary collection.
The SfRichTextBoxAdv also supports defining custom dictionaries that can be referred to while checking spelling mistakes. The SfRichTextBoxAdv ignores words that are defined in the referenced custom dictionaries. The SfRichTextBoxAdv supports the option of adding a misspelled word to a dictionary. This option will be enabled only when at least one custom dictionary is defined. The misspelled words are added to the first item in the [CustomDictionaries](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.Controls.RichTextBoxAdv.SpellChecker.html#Syncfusion_Windows_Controls_RichTextBoxAdv_SpellChecker_CustomDictionaries) collection.
The following code example demonstrates how to define custom dictionaries for spell checking.
{% tabs %}
{% highlight xaml %}
Expand All @@ -82,12 +82,15 @@ The following code example demonstrates how to define custom dictionaries for sp

{% endtabs %}

You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/WPF-RichTextBox-Samples/tree/main/How-to-add-custom-dictionaries-in-richtextbox) .
You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/WPF-RichTextBox-Samples/tree/main/How-to-add-custom-dictionaries-in-richtextbox).


## Multilingual Spell Check Support

The SfRichTextBoxAdv provides support for check spelling mistakes based on multi languages. You can do it so by defining language property for SfRichTextBoxAdv control.
The SfRichTextBoxAdv provides support for checking spelling mistakes based on multiple languages. You can do so by defining the Language property of the SfRichTextBoxAdv control.

N> In order to enable spell checking functionality based on a particular language, the language pack for .NET Framework must be installed on the machine.

The following code example demonstrates how to enable spell checking based on language.
{% tabs %}
{% highlight xaml %}
Expand All @@ -105,8 +108,9 @@ The following code example demonstrates how to enable spell checking based on la

## Spelling Pane

The SfRichTextBoxAdv provides built-in spelling pane support for checking spelling mistakes and rectifying error words, similar to the Microsoft Word application.
The following code example demonstrates how to show the spelling pane in SfRichTextBoxAdv through command binding.
The SfRichTextBoxAdv provides built-in spelling pane support for checking spelling mistakes and correcting error words, similar to the Microsoft Word application.

The following code example demonstrates how to show the spelling pane in SfRichTextBoxAdv through the [ShowSpellingPaneCommand](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.Controls.RichTextBoxAdv.SfRichTextBoxAdv.html#Syncfusion_Windows_Controls_RichTextBoxAdv_SfRichTextBoxAdv_ShowSpellingPaneCommand) command binding.
{% tabs %}
{% highlight xaml %}
<!-- Binding Button to UI Command that shows the spelling pane -->
Expand All @@ -118,5 +122,10 @@ The following code example demonstrates how to show the spelling pane in SfRichT
{% endtabs %}
![WPF RichTextBox displays spellcheck option](SpellCheck_images/wpf-richtextbox-spellcheck-option.PNG)

N> In order to enable spell checking functionality based on particular language, language pack for .NET Framework should be installed in the machine.
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

- [Commands in WPF RichTextBox](./Commands)
- [Document Structure in WPF RichTextBox](./Document-Structure)
- [Document Properties in WPF RichTextBox](./Document-Properties)
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ description: Learn here all about Styles and Templates support in Syncfusion WPF
platform: document-processing
control: SfRichTextBoxAdv
documentation: ug
keywords: styles-and-templates, custom-style
keywords: styles-and-templates,custom-style,theming,control-template,resource,xaml
---
# Styles and Templates in WPF RichTextBox (SfRichTextBoxAdv)

This section describes the styles and templates for the [WPF RichTextBox](https://www.syncfusion.com/docx-editor-sdk/wpf-docx-editor) (SfRichTextBoxAdv) control. The Template defines the structure of the SfRichTextBoxAdv control and the Style defines its visual appearance. You can modify the default Control template to define a unique appearance for the control.
This section describes the styles and templates for the [WPF RichTextBox](https://www.syncfusion.com/docx-editor-sdk/wpf-docx-editor) (SfRichTextBoxAdv) control. The Template defines the structure of the SfRichTextBoxAdv control and the Style defines its visual appearance. You can modify the default control template to define a unique appearance for the control.
The following XAML shows the default style and template for the SfRichTextBoxAdv control.
{% tabs %}
{% highlight xaml %}
Expand Down Expand Up @@ -757,12 +757,14 @@ The following XAML shows the default style and template for the SfRichTextBoxAdv

{% endtabs %}

N> In the control template, you are allowed to reorder the template parts and to add your own elements. However, when changing the control template you should be careful to include all required parts. Usually required parts are marked with Name attribute. Omission of required parts may impact some of the functionality.
N> In the control template, you are allowed to reorder the template parts and to add your own elements. However, when changing the template, you should be careful to include all required parts. Required parts are usually marked with the `Name` attribute. Omission of required parts may impact functionality.

## Styling the SfRichTextBoxAdv

You can define custom style for the SfRichTextBoxAdv control either by creating empty style and set it up on your own or by copying the default style and modifying it.
The following example demonstrates how to customize the style for SfRichTextBoxAdv control.
You can define a custom style for the SfRichTextBoxAdv control by either creating a new style from scratch or by copying the default style and modifying it.

The following example demonstrates how to customize the style for SfRichTextBoxAdv control, including disabling the [EnableMiniToolBar](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.Controls.RichTextBoxAdv.SfRichTextBoxAdv.html#Syncfusion_Windows_Controls_RichTextBoxAdv_SfRichTextBoxAdv_EnableMiniToolBar) property.

{% tabs %}
{% highlight xaml %}
<RichTextBoxAdv:SfRichTextBoxAdvResourceWrapper x:Key="SfRichTextBoxAdvResourceWrapper"/>
Expand Down Expand Up @@ -821,7 +823,7 @@ The following example demonstrates how to customize the style for SfRichTextBoxA

{% endtabs %}

The following code example demonstrates how to apply the custom style for SfRichTextBoxAdv control. Applying this style will result in a SfRichTextBoxAdv control with no options pane and no spelling pane.
The following code example demonstrates how to apply the custom style for SfRichTextBoxAdv control. Applying this style will result in an SfRichTextBoxAdv control with no options pane and no spelling pane.
{% tabs %}
{% highlight xaml %}
<RichTextBoxAdv:SfRichTextBoxAdv x:Name="richTextBoxAdv" Style="{StaticResource RichTextBoxAdvCustomStyle}" />
Expand All @@ -831,4 +833,10 @@ The following code example demonstrates how to apply the custom style for SfRich

{% 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

- [Getting Started in WPF RichTextBox](./Getting-Started)
- [Document Structure in WPF RichTextBox](./Document-Structure)
- [Commands in WPF RichTextBox](./Commands)
45 changes: 32 additions & 13 deletions Document-Processing/Word/Word-Processor/wpf/Table.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ description: Learn here all about Table support in Syncfusion WPF RichTextBox (S
platform: document-processing
control: SfRichTextBoxAdv
documentation: ug
keywords: table
keywords: table,rows,columns,cells,merge,alignment
---
# Table in WPF RichTextBox (SfRichTextBoxAdv)

The [WPF RichTextBox](https://www.syncfusion.com/docx-editor-sdk/wpf-docx-editor) (SfRichTextBoxAdv) allows you to add tables into the rich text document. You can insert any rows or columns to the existing table and also can delete existing rows and columns. The SfRichTextBoxAdv also allows you to merge the selected cells into one (both vertically and horizontally).
The [WPF RichTextBox](https://www.syncfusion.com/docx-editor-sdk/wpf-docx-editor) (SfRichTextBoxAdv) allows you to add tables to the rich text document. You can insert rows or columns into an existing table and can also delete existing rows and columns. The SfRichTextBoxAdv also allows you to merge the selected cells into one (both vertically and horizontally). The tables are represented using the [TableAdv](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.Controls.RichTextBoxAdv.TableAdv.html) class, with each row represented by [TableRowAdv](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.Controls.RichTextBoxAdv.TableRowAdv.html) and each cell by [TableCellAdv](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.Controls.RichTextBoxAdv.TableCellAdv.html). The cell-level layout is controlled by the [CellFormat](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.Controls.RichTextBoxAdv.CellFormat.html) class.

The following code example illustrates how to add tables into the rich text document.

{% tabs %}
Expand Down Expand Up @@ -78,13 +79,13 @@ section.Blocks.Add(tableAdv);
document.Sections.Add(section);
// Initialize and add any number of sections to the document here.

// Assign the documen to the RichTextBoxAdv instance.
// Assign the document to the RichTextBoxAdv instance.
richTextBoxAdv.Document = document;


{% endhighlight %}
{% highlight VB %}
' Initializes a document.
' Initialize a document.
Dim document As New DocumentAdv()

' Initialize a section.
Expand All @@ -100,7 +101,7 @@ Dim tableRowAdv As New TableRowAdv()
Dim tableCellAdv As New TableCellAdv()
tableCellAdv.CellFormat.CellWidth = 240

' Initializes a paragraph.
' Initialize a paragraph.
Dim paragraphAdv As New ParagraphAdv()
Dim spanAdv As New SpanAdv()
spanAdv.Text = "Cell 1"
Expand All @@ -121,7 +122,7 @@ section.Blocks.Add(tableAdv)
document.Sections.Add(section)
' Initialize and add any number of sections to the document here.

' Assign the documen to the RichTextBoxAdv instance.
' Assign the document to the RichTextBoxAdv instance.
richTextBoxAdv.Document = document


Expand All @@ -130,7 +131,9 @@ richTextBoxAdv.Document = document

## UI Commands for accessing table

The following code example illustrates how to bind the Button UI Command for inserting a table.
### Insert Table

The following code example illustrates how to bind a button UI command for inserting a table.
{% tabs %}
{% highlight xaml %}
<!-- Inserts the table with default size of one row and two columns -->
Expand Down Expand Up @@ -162,7 +165,9 @@ SfRichTextBoxAdv.InsertTableCommand.Execute(New Integer() {2, 3}, richTextBoxAdv
{% endtabs %}


The following code example illustrates how to bind the Button UI Command for inserting rows and columns.
### Insert Row and Column

The following code example illustrates how to bind a button UI command for inserting rows and columns.
{% tabs %}
{% highlight xaml %}
<!-- Inserts one row above to the current row -->
Expand All @@ -177,7 +182,9 @@ The following code example illustrates how to bind the Button UI Command for ins

{% endtabs %}

The following code example illustrates how to bind the Button UI Command for selecting cell, row, column and table.
### Select Cell, Row, Column, or Table

The following code example illustrates how to bind a button UI command for selecting a cell, row, column, or table.
{% tabs %}
{% highlight xml %}
<!--Selects the Cell-->
Expand All @@ -193,7 +200,9 @@ The following code example illustrates how to bind the Button UI Command for sel

{% endtabs %}

The following code example illustrates how to bind the Button UI Command for merging selected cells.
### Merge Cells

The following code example illustrates how to bind a button UI command for merging selected cells.
{% tabs %}
{% highlight xaml %}
<!-- Merges the selected cells -->
Expand All @@ -204,7 +213,9 @@ The following code example illustrates how to bind the Button UI Command for mer

{% endtabs %}

The following code example illustrates how to bind the Button UI Command to change content alignment of the selected cells.
### Change Cell Content Alignment

The following code example illustrates how to bind a button UI command to change the content alignment of the selected cells.
{% tabs %}
{% highlight xaml %}
<!--Change cell content alignment with command parameter as comma separated(vertical alignment and text alignment)-->
Expand Down Expand Up @@ -232,7 +243,9 @@ The following code example illustrates how to bind the Button UI Command to chan

{% endtabs %}

The following code example illustrates how to Button UI Command for deleting a row, deleting a column and deleting an entire table.
### Delete Row, Column, or Table

The following code example illustrates how to bind a button UI command for deleting a row, deleting a column, and deleting an entire table.
{% tabs %}
{% highlight xaml %}
<!-- Deletes the column -->
Expand All @@ -247,4 +260,10 @@ The following code example illustrates how to Button UI Command for deleting a r

{% 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

- [Commands in WPF RichTextBox](./Commands)
- [Document Structure in WPF RichTextBox](./Document-Structure)
- [Document Properties in WPF RichTextBox](./Document-Properties)
Loading