alexa
menu

Blazor

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

    Show / Hide Table of Contents

    Class RichTextEditorAudioSettings

    A class used for configuring the audio settings in the SfRichTextEditor.

    Inheritance
    object
    ComponentBase
    OwningComponentBase
    SfOwningComponentBase
    RichTextEditorMediaSettings
    RichTextEditorAudioSettings
    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.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
    RichTextEditorMediaSettings.Height
    RichTextEditorMediaSettings.isPropertyChanged
    RichTextEditorMediaSettings.LayoutOption
    RichTextEditorMediaSettings.OnAfterRenderAsync(bool)
    RichTextEditorMediaSettings.Parent
    RichTextEditorMediaSettings.Path
    RichTextEditorMediaSettings.RemoveUrl
    RichTextEditorMediaSettings.SaveFormat
    RichTextEditorMediaSettings.SaveUrl
    RichTextEditorMediaSettings.Width
    Namespace: Syncfusion.Blazor.RichTextEditor
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class RichTextEditorAudioSettings : RichTextEditorMediaSettings, IComponent, IHandleEvent, IHandleAfterRender, IDisposable

    Constructors

    RichTextEditorAudioSettings()

    Declaration
    public RichTextEditorAudioSettings()

    Properties

    AllowedTypes

    Gets or sets the audio extensions that are allowed during file browsing.

    Declaration
    [Parameter]
    public List<string>? AllowedTypes { get; set; }
    Property Value
    Type Description
    List<string>

    A list of audio file extensions that can be uploaded. The default extensions are .wav, .mp3, .m4a, and .wma.

    Remarks

    The File Browser allows the specified extensions and restricts uploading of other file types.

    Examples

    The following code example allows uploading of only mp3 and wav audio files.

    @using Syncfusion.Blazor.RichTextEditor;
    <SfRichTextEditor>
        <RichTextEditorToolbarSettings Items = "@Tools" />
        <RichTextEditorAudioSettings AllowedTypes="@TypeList" />
    </SfRichTextEditor>
    @code {
        List<string> TypeList = new List<string>() { ".mp3", ".wav" };
        private List<ToolbarItemModel> Tools = new List<ToolbarItemModel>()
        {
            new ToolbarItemModel() { Command = ToolbarCommand.Audio }
        };
    }

    MaxFileSize

    Gets or sets the maximum allowed file size of the audio element to be uploaded in bytes.

    Declaration
    [Parameter]
    public double MaxFileSize { get; set; }
    Property Value
    Type Description
    double

    A double value representing the maximum file size for the audio element. The default value is 30000000.

    Remarks

    This property ensures that overly large files cannot be uploaded.

    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
    RichTextEditorMediaSettings.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
    RichTextEditorMediaSettings.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
    RichTextEditorMediaSettings.OnParametersSetAsync()

    Implements

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