# RadzenTileLayoutItem Class

A tile displayed inside a [RadzenTileLayout](https://blazor.radzen.com/docs/api/Radzen.Blazor.RadzenTileLayout.md). Each tile occupies a rectangular area of the grid defined by its Col, Row, ColSpan and RowSpan and can be moved and resized while the parent layout is in edit mode.

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

Assembly: Radzen.Blazor.dll

## Inheritance

- Object
- ComponentBase
- [RadzenComponent](https://blazor.radzen.com/docs/api/Radzen.RadzenComponent.md)
- RadzenTileLayoutItem

## Implements

- IComponent
- IHandleEvent
- IHandleAfterRender

## Syntax

```csharp
public class RadzenTileLayoutItem : RadzenComponent, IComponent, IHandleEvent, IHandleAfterRender
```

## Examples

```razor
<RadzenTileLayout Columns="12" EditMode="true">
    <RadzenTileLayoutItem Title="Sales" Icon="paid" Col="1" Row="1" ColSpan="4" RowSpan="2">
        Content
    </RadzenTileLayoutItem>
</RadzenTileLayout>
```

## Constructors

| Constructor | Description |
|-------------|-------------|
| `public RadzenTileLayoutItem()` | A tile displayed inside a [RadzenTileLayout](https://blazor.radzen.com/docs/api/Radzen.Blazor.RadzenTileLayout.md). Each tile occupies a rectangular area of the grid defined by its Col, Row, ColSpan and RowSpan and can be moved and resized while the parent layout is in edit mode. |

## Properties

| Property | Type | Description |
|------|------|-------------|
| ChildContent | `RenderFragment` | Gets or sets the body content of the tile. |
| Col | `int` | Gets or sets the one-based column the tile starts at. |
| ColChanged | `EventCallback<int>` | Gets or sets the callback raised when Col changes. Enables @bind-Col. |
| ColSpan | `int` | Gets or sets how many columns the tile spans. |
| ColSpanChanged | `EventCallback<int>` | Gets or sets the callback raised when ColSpan changes. Enables @bind-ColSpan. |
| HeaderTemplate | `RenderFragment` | Gets or sets a custom header template. When set it replaces the default header built from Title and Icon. |
| Icon | `string` | Gets or sets the name of the icon displayed before the Title in the default header. |
| Layout | [`RadzenTileLayout`](https://blazor.radzen.com/docs/api/Radzen.Blazor.RadzenTileLayout.md) | Gets or sets the parent layout. |
| Row | `int` | Gets or sets the one-based row the tile starts at. |
| RowChanged | `EventCallback<int>` | Gets or sets the callback raised when Row changes. Enables @bind-Row. |
| RowSpan | `int` | Gets or sets how many rows the tile spans. |
| RowSpanChanged | `EventCallback<int>` | Gets or sets the callback raised when RowSpan changes. Enables @bind-RowSpan. |
| Title | `string` | Gets or sets the tile title displayed in the default header. |

## Methods

| Method | Returns | Description |
|------|---------|-------------|
| `BuildRenderTree(Rendering.RenderTreeBuilder __builder)` | `void` |  |
| `Dispose()` | `void` |  |
| `GetComponentCssClass()` | `string` |  |
| `OnInitialized()` | `void` |  |
| `OnParametersSet()` | `void` |  |

## Inherited Members

- From [RadzenComponent](https://blazor.radzen.com/docs/api/Radzen.RadzenComponent.md): AddContextMenu, Attributes, ContextMenu, Culture, CurrentStyle, Debounce, DefaultCulture, DefaultUICulture, Element, GetCssClass, GetId, GetIdAttribute, IsJSRuntimeAvailable, JSRuntime, Localize, MouseEnter, MouseLeave, OnAfterRenderAsync, OnBecameInvisible, OnContextMenu, OnMouseEnter, OnMouseLeave, RaiseContextMenu, RaiseMouseEnter, RaiseMouseLeave, Reference, SetParametersAsync, Style, UICulture, UniqueID, Visible
- From ComponentBase: Assets, AssignedRenderMode, DispatchExceptionAsync, InvokeAsync, OnAfterRender, OnInitializedAsync, OnParametersSetAsync, RendererInfo, ShouldRender, StateHasChanged

