Class RichTextEditorTableSettings
A class that represents Rich Text Editor component table properties.
Inheritance
Namespace: Syncfusion.Blazor.RichTextEditor
Assembly: Syncfusion.Blazor.dll
Syntax
public class RichTextEditorTableSettings : OwningComponentBaseRemarks
You can configure the table dimensions and styles by specifying values for the corresponding property.
Examples
In the following code example, configure the Width, MinWidth, MaxWidth, and EnableResize properties with the RichTextEditorTableSettings tag directive.
@using Syncfusion.Blazor.RichTextEditor;
<SfRichTextEditor>
    <RichTextEditorTableSettings MinWidth="200px" MaxWidth="800px" EnableResize="true" Width="500px" />
    <RichTextEditorToolbarSettings Items = "@Tools" />
</SfRichTextEditor>
@code {
        private List<ToolbarItemModel> Tools = new List<ToolbarItemModel>()
        {
            new ToolbarItemModel() { Command = ToolbarCommand.CreateTable }
        };
     }Constructors
RichTextEditorTableSettings()
Declaration
public RichTextEditorTableSettings()Properties
EnableResize
Gets or sets a value indicating whether the table can be resized in the editor's content.
Declaration
public bool EnableResize { get; set; }Property Value
| Type | Description | 
|---|---|
| System.Boolean | 
 | 
Remarks
MaxWidth
Gets or sets the maximum width constraint of the table.
Declaration
public string MaxWidth { get; set; }Property Value
| Type | Description | 
|---|---|
| System.String | A string value representing the maximum width. | 
Remarks
Provide the maximum width value using pixels or percentage (%) as a string.
MinWidth
Gets or sets the minimum width constraint of the table.
Declaration
public string MinWidth { get; set; }Property Value
| Type | Description | 
|---|---|
| System.String | A string value representing the minimum width. | 
Remarks
Provide the minimum width value using pixels or percentage (%) as a string.
Styles
Gets or sets custom styles for the selected table, changing its appearance.
Declaration
public List<DropDownItemModel> Styles { get; set; }Property Value
| Type | Description | 
|---|---|
| System.Collections.Generic.List<DropDownItemModel> | A list of DropDownItemModel. | 
Examples
@using Syncfusion.Blazor.RichTextEditor;
<SfRichTextEditor>
    <RichTextEditorTableSettings Styles="@StyleItems"/>
    <RichTextEditorToolbarSettings Items = "@Tools" />
</SfRichTextEditor>
@code {
        private List<ToolbarItemModel> Tools = new List<ToolbarItemModel>()
        {
            new ToolbarItemModel() { Command = ToolbarCommand.CreateTable }
        };
        private List<DropDownItemModel> StyleItems = new List<DropDownItemModel>() {
            new DropDownItemModel() { Text = "Alternate Rows" }
        };
     }Width
Gets or sets the width constraint of the table.
Declaration
public string Width { get; set; }Property Value
| Type | Description | 
|---|---|
| System.String | A string value representing the width. The default value is  | 
Remarks
Provide the width value using pixels or percentage (%) as a string.
Methods
Dispose(Boolean)
Dispose unmanaged resources in the Syncfusion Blazor component.
Declaration
protected override void Dispose(bool disposing)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Boolean | disposing | Boolean value to dispose the object. | 
OnInitializedAsync()
Method invoked when the component is ready to start.
Declaration
protected override Task OnInitializedAsync()Returns
| Type | Description | 
|---|---|
| System.Threading.Tasks.Task | A System.Threading.Tasks.Task representing any asynchronous operation. | 
OnParametersSetAsync()
Method invoked when the component has received parameters from its parent.
Declaration
protected override Task OnParametersSetAsync()Returns
| Type | Description | 
|---|---|
| System.Threading.Tasks.Task | A System.Threading.Tasks.Task representing any asynchronous operation. |