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