menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class RichTextEditorAudioSettings - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    Class RichTextEditorAudioSettings

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

    Inheritance
    System.Object
    RichTextEditorMediaSettings
    RichTextEditorAudioSettings
    Inherited Members
    RichTextEditorMediaSettings.Height
    RichTextEditorMediaSettings.isPropertyChanged
    RichTextEditorMediaSettings.LayoutOption
    RichTextEditorMediaSettings.OnAfterRenderAsync(Boolean)
    RichTextEditorMediaSettings.Parent
    RichTextEditorMediaSettings.Path
    RichTextEditorMediaSettings.SaveFormat
    RichTextEditorMediaSettings.SaveUrl
    RichTextEditorMediaSettings.ShouldRender()
    RichTextEditorMediaSettings.Width
    Namespace: Syncfusion.Blazor.RichTextEditor
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class RichTextEditorAudioSettings : RichTextEditorMediaSettings

    Constructors

    RichTextEditorAudioSettings()

    Declaration
    public RichTextEditorAudioSettings()

    Properties

    AllowedTypes

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

    Declaration
    public List<string> AllowedTypes { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.List<System.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 }
        };
    }

    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.

    Overrides
    RichTextEditorMediaSettings.Dispose(Boolean)

    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.

    Overrides
    RichTextEditorMediaSettings.OnInitializedAsync()

    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.

    Overrides
    RichTextEditorMediaSettings.OnParametersSetAsync()
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved