alexa
menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Search Results for

    Show / Hide Table of Contents

    Class RichTextEditorTableSettings

    A class that represents Rich Text Editor component table properties.

    Inheritance
    object
    ComponentBase
    OwningComponentBase
    SfOwningComponentBase
    RichTextEditorTableSettings
    Implements
    IComponent
    IHandleEvent
    IHandleAfterRender
    IDisposable
    Inherited Members
    ComponentBase.Assets
    ComponentBase.AssignedRenderMode
    ComponentBase.BuildRenderTree(RenderTreeBuilder)
    ComponentBase.DispatchExceptionAsync(Exception)
    ComponentBase.InvokeAsync(Action)
    ComponentBase.InvokeAsync(Func<Task>)
    ComponentBase.OnAfterRender(bool)
    ComponentBase.OnAfterRenderAsync(bool)
    ComponentBase.OnInitialized()
    ComponentBase.OnParametersSet()
    ComponentBase.RendererInfo
    ComponentBase.SetParametersAsync(ParameterView)
    ComponentBase.ShouldRender()
    ComponentBase.StateHasChanged()
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    OwningComponentBase.IsDisposed
    OwningComponentBase.ScopedServices
    Namespace: Syncfusion.Blazor.RichTextEditor
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class RichTextEditorTableSettings : SfOwningComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
    Remarks

    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
    [Parameter]
    public bool EnableResize { get; set; }
    Property Value
    Type Description
    bool

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

    Remarks

    The table can be resized up to the MaxWidth and down to the MinWidth value.

    MaxWidth

    Gets or sets the maximum width constraint of the table.

    Declaration
    [Parameter]
    public string? MaxWidth { get; set; }
    Property Value
    Type Description
    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
    [Parameter]
    public string? MinWidth { get; set; }
    Property Value
    Type Description
    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
    [Parameter]
    public List<DropDownItemModel>? Styles { get; set; }
    Property Value
    Type Description
    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
    [Parameter]
    public string? Width { get; set; }
    Property Value
    Type Description
    string

    A string value representing the width. The default value is 100%.

    Remarks

    Provide the width value using pixels or percentage (%) as a string.

    Methods

    Dispose(bool)

    Dispose unmanaged resources in the Syncfusion Blazor component.

    Declaration
    protected override void Dispose(bool disposing)
    Parameters
    Type Name Description
    bool disposing

    Boolean value to dispose the object.

    Overrides
    OwningComponentBase.Dispose(bool)

    OnInitializedAsync()

    Method invoked when the component is ready to start.

    Declaration
    protected override Task OnInitializedAsync()
    Returns
    Type Description
    Task

    A System.Threading.Tasks.Task representing any asynchronous operation.

    Overrides
    ComponentBase.OnInitializedAsync()

    OnParametersSetAsync()

    Method invoked when the component has received parameters from its parent.

    Declaration
    protected override Task OnParametersSetAsync()
    Returns
    Type Description
    Task

    A System.Threading.Tasks.Task representing any asynchronous operation.

    Overrides
    ComponentBase.OnParametersSetAsync()

    Implements

    IComponent
    IHandleEvent
    IHandleAfterRender
    IDisposable
    In this article
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved