Class RadzenLabel
RadzenLabel component.
Inherited Members
Namespace: Radzen.Blazor
Assembly: Radzen.Blazor.dll
Syntax
public class RadzenLabel : RadzenComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Examples
<RadzenLabel Text="CompanyName" Component="CompanyName" />
<RadzenTextBox Name="CompanyName" />
Constructors
RadzenLabel()
RadzenLabel component.
Declaration
public RadzenLabel()
Examples
<RadzenLabel Text="CompanyName" Component="CompanyName" />
<RadzenTextBox Name="CompanyName" />
Properties
ChildContent
Gets or sets the child content.
Declaration
[Parameter]
public RenderFragment ChildContent { get; set; }
Property Value
Type | Description |
---|---|
RenderFragment | The child content. |
Component
Gets or sets the component name for the label.
Declaration
[Parameter]
public string Component { get; set; }
Property Value
Type | Description |
---|---|
string | The component name for the label. |
Text
Gets or sets the text.
Declaration
[Parameter]
public string Text { get; set; }
Property Value
Type | Description |
---|---|
string | The text. |
Methods
BuildRenderTree(RenderTreeBuilder)
RadzenLabel component.
Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
Type | Name | Description |
---|---|---|
RenderTreeBuilder | __builder |
Overrides
GetComponentCssClass()
Gets the component CSS class.
Declaration
protected override string GetComponentCssClass()
Returns
Type | Description |
---|---|
string |