Class RadzenHtmlEditorFormatBlock
A tool which changes the style of a the selected text by making it a heading or paragraph.
Inherited Members
Namespace: Radzen.Blazor
Assembly: Radzen.Blazor.dll
Syntax
public class RadzenHtmlEditorFormatBlock : ComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Examples
<RadzenHtmlEditor @bind-Value=@html>
<RadzenHtmlEditorFormatBlock />
</RadzenHtmlEdito>
@code {
string html = "@lt;strong>Hello</strong> world!";
}
Constructors
RadzenHtmlEditorFormatBlock()
A tool which changes the style of a the selected text by making it a heading or paragraph.
Declaration
public RadzenHtmlEditorFormatBlock()
Examples
<RadzenHtmlEditor @bind-Value=@html>
<RadzenHtmlEditorFormatBlock />
</RadzenHtmlEdito>
@code {
string html = "@lt;strong>Hello</strong> world!";
}
Properties
Editor
The RadzenHtmlEditor component which this tool is part of.
Declaration
[CascadingParameter]
public RadzenHtmlEditor Editor { get; set; }
Property Value
Type | Description |
---|---|
RadzenHtmlEditor |
Heading1Text
Specifies the text displayed for the h1 example. Set to "Heading 1"
by default.
Declaration
[Parameter]
public string Heading1Text { get; set; }
Property Value
Type | Description |
---|---|
string |
Heading2Text
Specifies the text displayed for the h2 example. Set to "Heading 2"
by default.
Declaration
[Parameter]
public string Heading2Text { get; set; }
Property Value
Type | Description |
---|---|
string |
Heading3Text
Specifies the text displayed for the h3 example. Set to "Heading 3"
by default.
Declaration
[Parameter]
public string Heading3Text { get; set; }
Property Value
Type | Description |
---|---|
string |
Heading4Text
Specifies the text displayed for the h4 example. Set to "Heading 4"
by default.
Declaration
[Parameter]
public string Heading4Text { get; set; }
Property Value
Type | Description |
---|---|
string |
Heading5Text
Specifies the text displayed for the h5 example. Set to "Heading 5"
by default.
Declaration
[Parameter]
public string Heading5Text { get; set; }
Property Value
Type | Description |
---|---|
string |
Heading6Text
Specifies the text displayed for the h6 example. Set to "Heading 6"
by default.
Declaration
[Parameter]
public string Heading6Text { get; set; }
Property Value
Type | Description |
---|---|
string |
NormalText
Specifies the text displayed for the normal text example. Set to "Normal"
by default.
Declaration
[Parameter]
public string NormalText { get; set; }
Property Value
Type | Description |
---|---|
string |
Placeholder
Specifies the placeholder displayed to the user. Set to "Format block"
by default.
Declaration
[Parameter]
public string Placeholder { get; set; }
Property Value
Type | Description |
---|---|
string |
Title
Specifies the title (tooltip) displayed when the user hovers the tool. Set to "Text style"
by default.
Declaration
[Parameter]
public string Title { get; set; }
Property Value
Type | Description |
---|---|
string |
Methods
BuildRenderTree(RenderTreeBuilder)
A tool which changes the style of a the selected text by making it a heading or paragraph.
Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
Type | Name | Description |
---|---|---|
RenderTreeBuilder | __builder |
Overrides
Dispose()
IDisposable implementation.
Declaration
public void Dispose()
OnInitialized()
A tool which changes the style of a the selected text by making it a heading or paragraph.
Declaration
protected override void OnInitialized()