# RadzenHtmlEditorFontNameItem Class

Adds a custom font to a [RadzenHtmlEditorFontName](https://blazor.radzen.com/docs/api/Radzen.Blazor.RadzenHtmlEditorFontName.md).

Namespace: [Radzen.Blazor](https://blazor.radzen.com/docs/api/Radzen.Blazor.md)

Assembly: Radzen.Blazor.dll

## Inheritance

- Object
- ComponentBase
- RadzenHtmlEditorFontNameItem

## Implements

- IComponent
- IHandleEvent
- IHandleAfterRender

## Syntax

```csharp
public class RadzenHtmlEditorFontNameItem : ComponentBase, IComponent, IHandleEvent, IHandleAfterRender
```

## Examples

```razor
<RadzenHtmlEditorFontName>
<RadzenHtmlEditorFontNameItem Text="Times New Roman" Value='"Times New Roman"' />
</RadzenHtmlEditorFontName>
```

## Constructors

| Constructor | Description |
|-------------|-------------|
| `public RadzenHtmlEditorFontNameItem()` | Adds a custom font to a [RadzenHtmlEditorFontName](https://blazor.radzen.com/docs/api/Radzen.Blazor.RadzenHtmlEditorFontName.md). |

## Properties

| Property | Type | Description |
|------|------|-------------|
| Parent | [`RadzenHtmlEditorFontName`](https://blazor.radzen.com/docs/api/Radzen.Blazor.RadzenHtmlEditorFontName.md) | The RadzenHtmlEditorFontName tool which this tool belongs to. |
| Text | `string` | The name of the font e.g. "Times New Roman". |
| Value | `string` | The CSS value of the font. Use quotes if it contains spaces. |

## Methods

| Method | Returns | Description |
|------|---------|-------------|
| `BuildRenderTree(Rendering.RenderTreeBuilder __builder)` | `void` |  |
| `OnInitialized()` | `void` |  |

## Inherited Members

- From ComponentBase: Assets, AssignedRenderMode, DispatchExceptionAsync, InvokeAsync, OnAfterRender, OnAfterRenderAsync, OnInitializedAsync, OnParametersSet, OnParametersSetAsync, RendererInfo, SetParametersAsync, ShouldRender, StateHasChanged

