# Changing the Contour's Line Thickness and Color

## Content



To change the line thickness or color for a contour line, change the **Thickness** and **Color** properties of the **Chart3DLineStyle** object. For example, the following statements change the second contour line to a green line:

DOC-DETAILS-TAG-OPEN

DOC-SUMMARY-TAG-OPEN

To write code in Visual Basic

DOC-SUMMARY-TAG-CLOSE

```vbnet
C1Chart3D1.ChartGroups(0).Contour.Levels(1).Style.LineStyle.Color = Color.Green
```

DOC-DETAILS-TAG-CLOSE

DOC-DETAILS-TAG-OPEN

DOC-SUMMARY-TAG-OPEN

To write code in C#

DOC-SUMMARY-TAG-CLOSE

```csharp
C1Chart3D1.ChartGroups[0].Contour.Levels[1].Style.LineStyle.Color = Color.Green;
```

DOC-DETAILS-TAG-CLOSE

To revert to the default contour style behavior, invoke the **Reset** method. All contour styles will be reset to their default values.

## See Also

[Displaying Contours and Zones On the Ceiling or Floor](/componentone/docs/win/online-chart3d/3dcontourstyles/changingthecontoursl/displayingcontoursan)