# RadzenHtmlEditorBackground Class

A RadzenHtmlEditor tool which sets the background color of the selection.

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

Assembly: Radzen.Blazor.dll

## Inheritance

- Object
- ComponentBase
- RadzenHtmlEditorButtonBase
- RadzenHtmlEditorColorBase
- RadzenHtmlEditorBackground

## Implements

- IComponent
- IHandleEvent
- IHandleAfterRender

## Syntax

```csharp
public class RadzenHtmlEditorBackground : RadzenHtmlEditorColorBase, IComponent, IHandleEvent, IHandleAfterRender
```

## Examples

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

## Constructors

| Constructor | Description |
|-------------|-------------|
| `public RadzenHtmlEditorBackground()` | A RadzenHtmlEditor tool which sets the background color of the selection. |

## Properties

| Property | Type | Description |
|------|------|-------------|
| CommandName | `string` |  |
| Title | `string` | Specifies the title (tooltip) displayed when the user hovers the tool. Set to "Background color" by default. |
| Value | `string` | Specifies the default background color. Set to "rgb(0, 0, 255)" by default; |

## Methods

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

## Inherited Members

- From RadzenHtmlEditorColorBase: AlphaText, BlueText, ButtonText, ChildContent, GreenText, HexText, OnChange, OnInitialized, RedText, SetParametersAsync, ShowButton, ShowColors, ShowHSV, ShowRGBA, value
- From RadzenHtmlEditorButtonBase: Dispose, Editor, Localize, OnClick, Shortcut
- From ComponentBase: Assets, AssignedRenderMode, DispatchExceptionAsync, InvokeAsync, OnAfterRender, OnAfterRenderAsync, OnInitializedAsync, OnParametersSet, OnParametersSetAsync, RendererInfo, ShouldRender, StateHasChanged

