Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class RichTextEditorTableSettings

    Show / Hide Table of Contents

    Class RichTextEditorTableSettings

    A class that represents Rich Text Editor component table properties.

    Inheritance
    System.Object
    RichTextEditorTableSettings
    Namespace: Syncfusion.Blazor.RichTextEditor
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class RichTextEditorTableSettings : OwningComponentBase
    Remarks

    You can configure the table dimensions and styles by specifying the value to the corresponding property.

    Examples

    In the following code example, configure the Width, MinWidth, MaxWidth, and EnableResize properties added using 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 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

    true, if the table can be resized; otherwise, false.The default value is true.

    Remarks

    You can resize maximum upto the MaxWidth value and maximum upto the MinWidth value.

    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 that represents the maximum width.

    Remarks

    To provide the maximum width value in pixel or percent (%) as string type.

    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 that represents the minimum width.

    Remarks

    To provide the minimum width value in pixel or percent (%) as string type.

    Styles

    Gets or sets custom styles for the selected table. The style changes the table’s appearance.

    Declaration
    public List<DropDownItemModel> Styles { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.List<DropDownItemModel>

    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 that represents the width. The default value is 100%.

    Remarks

    To provide the width value in pixel or percent (%) as string type.

    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.

    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved