RadzenHtmlEditorFormatBlock Class

A tool which changes the style of a the selected text by making it a heading or paragraph.

Inheritance

Object

ComponentBase

RadzenHtmlEditorFormatBlock

Implements

IComponent

IHandleEvent

IHandleAfterRender

Inherited Members

ComponentBase.OnInitializedAsync

ComponentBase.OnParametersSet

ComponentBase.OnParametersSetAsync

ComponentBase.StateHasChanged

ComponentBase.ShouldRender

ComponentBase.OnAfterRender

ComponentBase.OnAfterRenderAsync

ComponentBase.InvokeAsync

ComponentBase.DispatchExceptionAsync

ComponentBase.SetParametersAsync

ComponentBase.RendererInfo

ComponentBase.Assets

ComponentBase.AssignedRenderMode

Namespace: Radzen.Blazor

Assembly: Radzen.Blazor.dll

Syntax

public class RadzenHtmlEditorFormatBlock : ComponentBase, IComponent, IHandleEvent, IHandleAfterRender

Examples

<RadzenHtmlEditor @bind-Value=@html>
 <RadzenHtmlEditorFormatBlock />
</RadzenHtmlEdito>
@code {
  string html = "@lt;strong>Hello</strong> world!";
}

Constructors

RadzenHtmlEditorFormatBlocklink

A tool which changes the style of a the selected text by making it a heading or paragraph.

Declaration
public RadzenHtmlEditorFormatBlock()

Properties

Editorlink

The RadzenHtmlEditor component which this tool is part of.

Declaration
public RadzenHtmlEditor Editor { get; set; }
Property Value
Type Description
RadzenHtmlEditorThe RadzenHtmlEditor component which this tool is part of.

Heading1Textlink

Specifies the text displayed for the h1 example. Set to "Heading 1" by default.

Declaration
public string Heading1Text { get; set; }
Property Value
Type Description
stringSpecifies the text displayed for the h1 example. Set to "Heading 1" by default.

Heading2Textlink

Specifies the text displayed for the h2 example. Set to "Heading 2" by default.

Declaration
public string Heading2Text { get; set; }
Property Value
Type Description
stringSpecifies the text displayed for the h2 example. Set to "Heading 2" by default.

Heading3Textlink

Specifies the text displayed for the h3 example. Set to "Heading 3" by default.

Declaration
public string Heading3Text { get; set; }
Property Value
Type Description
stringSpecifies the text displayed for the h3 example. Set to "Heading 3" by default.

Heading4Textlink

Specifies the text displayed for the h4 example. Set to "Heading 4" by default.

Declaration
public string Heading4Text { get; set; }
Property Value
Type Description
stringSpecifies the text displayed for the h4 example. Set to "Heading 4" by default.

Heading5Textlink

Specifies the text displayed for the h5 example. Set to "Heading 5" by default.

Declaration
public string Heading5Text { get; set; }
Property Value
Type Description
stringSpecifies the text displayed for the h5 example. Set to "Heading 5" by default.

Heading6Textlink

Specifies the text displayed for the h6 example. Set to "Heading 6" by default.

Declaration
public string Heading6Text { get; set; }
Property Value
Type Description
stringSpecifies the text displayed for the h6 example. Set to "Heading 6" by default.

NormalTextlink

Specifies the text displayed for the normal text example. Set to "Normal" by default.

Declaration
public string NormalText { get; set; }
Property Value
Type Description
stringSpecifies the text displayed for the normal text example. Set to "Normal" by default.

Placeholderlink

Specifies the placeholder displayed to the user. Set to "Format block" by default.

Declaration
public string Placeholder { get; set; }
Property Value
Type Description
stringSpecifies the placeholder displayed to the user. Set to "Format block" by default.

Titlelink

Specifies the title (tooltip) displayed when the user hovers the tool. Set to "Text style" by default.

Declaration
public string Title { get; set; }
Property Value
Type Description
stringSpecifies the title (tooltip) displayed when the user hovers the tool. Set to "Text style" by default.

Methods

BuildRenderTreelink

Declaration
protected override void BuildRenderTree(Rendering.RenderTreeBuilder __builder)
Parameters
Type Name Description
Rendering.RenderTreeBuilder __builder

Disposelink

IDisposable implementation.

Declaration
public void Dispose()

OnInitializedlink

Declaration
protected override void OnInitialized()
An error has occurred. This app may no longer respond until reloaded. Reload 🗙