# GanttDependency<TItem> Class

Defines a dependency between two Gantt tasks.

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

Assembly: Radzen.Blazor.dll

## Inheritance

- Object
- GanttDependency<TItem>

## Syntax

```csharp
public class GanttDependency<TItem>
```

## Type Parameters

| Name | Description |
|------|-------------|
| TItem | The task item type. |

## Constructors

| Constructor | Description |
|-------------|-------------|
| `public GanttDependency<TItem>()` | Defines a dependency between two Gantt tasks. |

## Properties

| Property | Type | Description |
|------|------|-------------|
| From | `TItem` | The predecessor task. |
| To | `TItem` | The successor task. |
| Type | [`GanttDependencyType`](https://blazor.radzen.com/docs/api/Radzen.Blazor.GanttDependencyType.md) | The dependency type. Defaults to FinishToStart. |

