# GC.Spread.Sheets.GanttSheet.TaskDependency

## Content

# Class: TaskDependency

[Sheets](../modules/GC.Spread.Sheets).[GanttSheet](../modules/GC.Spread.Sheets.GanttSheet).TaskDependency

## Table of contents

### Constructors

- [constructor](GC.Spread.Sheets.GanttSheet.TaskDependency#constructor)

### Properties

- [from](GC.Spread.Sheets.GanttSheet.TaskDependency#from)
- [to](GC.Spread.Sheets.GanttSheet.TaskDependency#to)
- [type](GC.Spread.Sheets.GanttSheet.TaskDependency#type)

## Constructors

### <a id="constructor" name="constructor"></a> constructor

• **new TaskDependency**(`from`, `to`, `type?`)

Creates a task dependency.

**`classdesc`** Represents a task dependency.

#### Parameters

| Name | Type | Description |
| :------ | :------ | :------ |
| `from` | [`Task`](GC.Spread.Sheets.GanttSheet.Task) | Indicates the task which the dependency is from. |
| `to` | [`Task`](GC.Spread.Sheets.GanttSheet.Task) | Indicates the task which the dependency is to. |
| `type?` | [`TaskDependencyType`](../modules/GC.Spread.Sheets.GanttSheet#taskdependencytype) | - |

## Properties

### <a id="from" name="from"></a> from

• **from**: [`Task`](GC.Spread.Sheets.GanttSheet.Task)

Gets the task which this dependency is from.

**`readonly`**

___

### <a id="to" name="to"></a> to

• **to**: [`Task`](GC.Spread.Sheets.GanttSheet.Task)

Gets the task which this dependency is to.

**`readonly`**

___

### <a id="type" name="type"></a> type

• **type**: [`TaskDependencyType`](../modules/GC.Spread.Sheets.GanttSheet#taskdependencytype)

Gets the type of this dependency.

**`readonly`**
