Class RichTextEditorNumberFormatList
A class for configuring the properties of NumberFormatList within the SfRichTextEditor.
Inheritance
System.Object
RichTextEditorNumberFormatList
Namespace: Syncfusion.Blazor.RichTextEditor
Assembly: Syncfusion.Blazor.dll
Syntax
public class RichTextEditorNumberFormatList : OwningComponentBase
Examples
@using Syncfusion.Blazor.RichTextEditor;
<SfRichTextEditor>
<RichTextEditorToolbarSettings Items = "@Tools" />
<RichTextEditorBulletFormatList Items="@NumberList" />
</SfRichTextEditor>
@code {
private List<ToolbarItemModel> Tools = new List<ToolbarItemModel>()
{
new ToolbarItemModel() { Command = ToolbarCommand.NumberFormatList }
};
List<DropDownItemModel> NumberList = new List<DropDownItemModel>() {
new DropDownItemModel() { Text = "None", Value = "none" },
new DropDownItemModel() { Text = "Number", Value = "decimal" },
new DropDownItemModel() { Text = "Upper Alpha", Value = "upper-alpha" },
new DropDownItemModel() { Text = "Lower Alpha", Value = "lower-alpha" }
};
}
Constructors
RichTextEditorNumberFormatList()
Declaration
public RichTextEditorNumberFormatList()
Properties
Items
Gets or sets the format list collection to be displayed in the numbered list toolbar item in the SfRichTextEditor.
Declaration
public List<DropDownItemModel> Items { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.List<DropDownItemModel> | The collection of format list items represented by DropDownItemModel. |
Remarks
Items in the list determine the available options in the number format dropdown of the toolbar.
Methods
Dispose()
Dispose the unmanaged resources.
Declaration
public virtual void Dispose()
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. |
GetDropDownType()
Declaration
protected virtual string GetDropDownType()
Returns
| Type |
|---|
| System.String |
OnInitializedAsync()
Declaration
protected override Task OnInitializedAsync()
Returns
| Type |
|---|
| System.Threading.Tasks.Task |
OnParametersSetAsync()
Declaration
protected override Task OnParametersSetAsync()
Returns
| Type |
|---|
| System.Threading.Tasks.Task |