# Contour Style Appearance Properties

## Content



By default, the chart defines an array of contour styles for each chart group. These contour styles are specified as a [Chart3DContourStylesCollection](/componentone/api/win/online-chart3d/dotnet-framework-api/C1.Win.C1Chart3D.4.8/C1.Win.C1Chart3D.Chart3DContourStylesCollection.html) of objects.

Each [Chart3DContourStyle](/componentone/api/win/online-chart3d/dotnet-framework-api/C1.Win.C1Chart3D.4.8/C1.Win.C1Chart3D.Chart3DContourStyle.html) object in this collection defines two properties that specify the appearance of a particular contour line or zone in a chart:

*   The [FillColor](/componentone/api/win/online-chart3d/dotnet-framework-api/C1.Win.C1Chart3D.4.8/C1.Win.C1Chart3D.Chart3DContourStyle.FillColor.html) property specifies the color of the zone associated with this contour style. The FillColor property can be accessed at design time in the **Chart3DStyle Collection Editor** of the ContourStyles node. The **ContourStyles** node can be accessed through the **ChartGroups** node in the Visual Studio Properties window.
*   The [LineStyle](/componentone/api/win/online-chart3d/dotnet-framework-api/C1.Win.C1Chart3D.4.8/C1.Win.C1Chart3D.Chart3DContourStyle.LineStyle.html) property is a LineStyle object, and specifies the width and color of the contour line associated with this contour style. By default, each line is one pixel wide and is a solid black line. The **LineStyle** property can be accessed at design time in the **Chart3DStyle Collection Editor** of the **ContourStyles** node. The ContourStyles node can be accessed through the **ChartGroups** node in the Visual Studio Properties window.

A total of one hundred contour styles are defined by default. To add additional contour styles, use the [Add](/componentone/api/win/online-chart3d/dotnet-framework-api/C1.Win.C1Chart3D.4.8/C1.Win.C1Chart3D.Chart3DContourLevelsCollection.Add.html) method.

To access the **ContourStyle** object associated with a particular contour line or zone, use the [Style](/componentone/api/win/online-chart3d/dotnet-framework-api/C1.Win.C1Chart3D.4.8/C1.Win.C1Chart3D.Chart3DContourLevel.Style.html) property of [Chart3DContourLevel](/componentone/api/win/online-chart3d/dotnet-framework-api/C1.Win.C1Chart3D.4.8/C1.Win.C1Chart3D.Chart3DContourLevel.html) object. For example, the following retrieves the Chart3DContourStyle object for the third contour line:

DOC-DETAILS-TAG-OPEN

DOC-SUMMARY-TAG-OPEN

To write code in Visual Basic

DOC-SUMMARY-TAG-CLOSE

```vbnet
Dim cstyle As Chart3DContourStyle
cstyle = C1Chart3D1.ChartGroups(0).Contour.Levels(2).Style
```

DOC-DETAILS-TAG-CLOSE

DOC-DETAILS-TAG-OPEN

DOC-SUMMARY-TAG-OPEN

To write code in C#

DOC-SUMMARY-TAG-CLOSE

```csharp
Chart3DContourStyle cstyle = C1Chart3D1.ChartGroups[0].Contour.Levels[2].Style;
```

DOC-DETAILS-TAG-CLOSE

Use this approach to change the attributes of individual zones or contour lines. For example, to change the color for a particular zone, change the **FillColor** property of the **Chart3DContourStyle** object. The following statements change the first zone color to green:

DOC-DETAILS-TAG-OPEN

DOC-SUMMARY-TAG-OPEN

To write code in Visual Basic

DOC-SUMMARY-TAG-CLOSE

```vbnet
C1Chart3D1.ChartGroups(0).Contour.Levels(0).Style.FillColor = 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[0].Style.FillColor = Color.Green;
```

DOC-DETAILS-TAG-CLOSE

## See Also

[Contour Styles and Distribution Levels](/componentone/docs/win/online-chart3d/3dcontourstyles/contourstylesanddist)