diff --git a/Document-Processing/Word/Word-Processor/angular/text-format.md b/Document-Processing/Word/Word-Processor/angular/text-format.md index 6bd19804f..506c98495 100644 --- a/Document-Processing/Word/Word-Processor/angular/text-format.md +++ b/Document-Processing/Word/Word-Processor/angular/text-format.md @@ -188,6 +188,18 @@ let highlightColor : HighlightColor = documenteditor.selection.characterFormat.h documenteditor.selection.characterFormat.highlightColor= 'Pink'; ``` +## Bidirectional (Bidi) + +The Bidi property controls whether selected text is displayed as right-to-left (RTL) or left-to-right (LTR) for proper multilingual formatting. You can get or set this property using the following code example. + +```typescript +// Get Bidi value of selected text +let bidi: boolean = documenteditor.selection.characterFormat.bidi; + +// Set Bidi for selected text +documenteditor.selection.characterFormat.bidi= true; +``` + ## Toolbar with options for text formatting Refer to the following example. diff --git a/Document-Processing/Word/Word-Processor/asp-net-core/text-format.md b/Document-Processing/Word/Word-Processor/asp-net-core/text-format.md index cc1e3fcce..4ac449e70 100644 --- a/Document-Processing/Word/Word-Processor/asp-net-core/text-format.md +++ b/Document-Processing/Word/Word-Processor/asp-net-core/text-format.md @@ -159,6 +159,18 @@ The highlight color of the selected text can be get or set using the following s documenteditor.selection.characterFormat.highlightColor= 'Pink'; ``` +## Bidirectional (Bidi) + +The Bidi property controls whether selected text is displayed as right-to-left (RTL) or left-to-right (LTR) for proper multilingual formatting. You can get or set this property using the following code example. + +```typescript +// Get Bidi value of selected text +var bidi = documenteditor.selection.characterFormat.bidi; + +// Set Bidi for selected text +documenteditor.selection.characterFormat.bidi= true; +``` + ## Toolbar with options for text formatting diff --git a/Document-Processing/Word/Word-Processor/asp-net-mvc/text-format.md b/Document-Processing/Word/Word-Processor/asp-net-mvc/text-format.md index 796c049cb..02f3ca4eb 100644 --- a/Document-Processing/Word/Word-Processor/asp-net-mvc/text-format.md +++ b/Document-Processing/Word/Word-Processor/asp-net-mvc/text-format.md @@ -159,6 +159,18 @@ The highlight color of the selected text can be get or set using the following s documenteditor.selection.characterFormat.highlightColor= 'Pink'; ``` +## Bidirectional (Bidi) + +The Bidi property controls whether selected text is displayed as right-to-left (RTL) or left-to-right (LTR) for proper multilingual formatting. You can get or set this property using the following code example. + +```typescript +// Get Bidi value of selected text +var bidi = documenteditor.selection.characterFormat.bidi; + +// Set Bidi for selected text +documenteditor.selection.characterFormat.bidi= true; +``` + ## Toolbar with options for text formatting diff --git a/Document-Processing/Word/Word-Processor/javascript-es5/text-format.md b/Document-Processing/Word/Word-Processor/javascript-es5/text-format.md index 9c29f3407..339397879 100644 --- a/Document-Processing/Word/Word-Processor/javascript-es5/text-format.md +++ b/Document-Processing/Word/Word-Processor/javascript-es5/text-format.md @@ -190,6 +190,18 @@ documenteditor.selection.characterFormat.highlightColor = 'Pink'; N> 1. Character scaling and spacing present in the input Word document will be preserved in the exported Word document. N> 2. Scaling is implemented using the letterSpacing property, which may present compatibility problems. For more information, please refer to this [link](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/letterSpacing#browser_compatibility) +## Bidirectional (Bidi) + +The Bidi property controls whether selected text is displayed as right-to-left (RTL) or left-to-right (LTR) for proper multilingual formatting. You can get or set this property using the following code example. + +```js +// Get Bidi value of selected text +var bidi = documenteditor.selection.characterFormat.bidi; + +// Set Bidi for selected text +documenteditor.selection.characterFormat.bidi= true; +``` + ## Toolbar with options for text formatting Refer to the following example. diff --git a/Document-Processing/Word/Word-Processor/javascript-es6/text-format.md b/Document-Processing/Word/Word-Processor/javascript-es6/text-format.md index e35903b98..937639ad8 100644 --- a/Document-Processing/Word/Word-Processor/javascript-es6/text-format.md +++ b/Document-Processing/Word/Word-Processor/javascript-es6/text-format.md @@ -190,6 +190,18 @@ documenteditor.selection.characterFormat.highlightColor = 'Pink'; N> 1. Character scaling and spacing present in the input Word document will be preserved in the exported Word document. N> 2. Scaling is implemented using the letterSpacing property, which may present compatibility problems. For more information, please refer to this [link](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/letterSpacing#browser_compatibility) +## Bidirectional (Bidi) + +The Bidi property controls whether selected text is displayed as right-to-left (RTL) or left-to-right (LTR) for proper multilingual formatting. You can get or set this property using the following code example. + +```ts +// Get Bidi value of selected text +let bidi: boolean = documenteditor.selection.characterFormat.bidi; + +// Set Bidi for selected text +documenteditor.selection.characterFormat.bidi= true; +``` + ## Toolbar with options for text formatting Refer to the following example. diff --git a/Document-Processing/Word/Word-Processor/react/text-format.md b/Document-Processing/Word/Word-Processor/react/text-format.md index d4d60b6e5..1bc175d4f 100644 --- a/Document-Processing/Word/Word-Processor/react/text-format.md +++ b/Document-Processing/Word/Word-Processor/react/text-format.md @@ -188,6 +188,18 @@ let highlightColor : HighlightColor = documenteditor.selection.characterFormat.h documenteditor.selection.characterFormat.highlightColor= 'Pink'; ``` +## Bidirectional (Bidi) + +The Bidi property controls whether selected text is displayed as right-to-left (RTL) or left-to-right (LTR) for proper multilingual formatting. You can get or set this property using the following code example. + +```ts +// Get Bidi value of selected text +let bidi: boolean = documenteditor.selection.characterFormat.bidi; + +// Set Bidi for selected text +documenteditor.selection.characterFormat.bidi= true; +``` + ## Toolbar with options for text formatting Refer to the following example. diff --git a/Document-Processing/Word/Word-Processor/vue/text-format.md b/Document-Processing/Word/Word-Processor/vue/text-format.md index 4a57ce047..23186b4ba 100644 --- a/Document-Processing/Word/Word-Processor/vue/text-format.md +++ b/Document-Processing/Word/Word-Processor/vue/text-format.md @@ -187,6 +187,18 @@ let highlightColor : HighlightColor = this.$refs.documenteditor.ej2instances.sel this.$refs.documenteditor.ej2Instances.selection.characterFormat.highlightColor= 'Pink'; ``` +## Bidirectional (Bidi) + +The Bidi property controls whether selected text is displayed as right-to-left (RTL) or left-to-right (LTR) for proper multilingual formatting. You can get or set this property using the following code example. + +```ts +// Get Bidi value of selected text +let bidi: boolean = this.$refs.documenteditor.ej2Instances.selection.characterFormat.bidi; + +// Set Bidi for selected text +this.$refs.documenteditor.ej2Instances.selection.characterFormat.bidi= true; +``` + ## Toolbar with options for text formatting Refer to the following example.