# TreeMapColorRangeFactory

## Methods

### AddRange(System.String,System.String)

Adds а color range.

#### Parameters

##### fromColor - `System.String`

The staring color in the gradient.

##### toColor - `System.String`

The ending color in the gradient.

#### RETURNS

Returns a new instance of [TreeMapColorRangeFactory](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/treemapcolorrangefactory) for method chaining.

#### Example

```
 
             @(Html.Kendo().TreeMap()
                .Name("treeMap")
                .Colors(color =>
                {
                    color.AddRange("#0072c6", "#cbe2f3");
                })
             )
             
```
