# Contour Styles and Distribution Levels

## Content

The nth contour line or zone in a chart is normally **not** associated with the nth contour style in the [Chart3DContourStyles](/componentone/api/win/online-chart3d/dotnet-framework-api/C1.Win.C1Chart3D.4.8/C1.Win.C1Chart3D.Chart3DContourStyles.html) collection. The relationship between distribution levels (contour lines/zones) and the Chart3DContourStyles collection is as follows:

* If *nstyles* contour styles are provided, and the number of distribution levels is *nlevels*, the index of the contour style associated with the nth distribution level is the largest integer less than or equal to the following:
    `(n * (nstyles - 1) / nlevels) + 1`

For example, if one hundred contour styles and six distribution levels are defined, the distribution levels use the 1st, 21st, 41st, 60th, 80th, and 100th elements of the Chart3DContourStyles collection, respectively. (The number of distribution levels is specified by the [NumLevels](/componentone/api/win/online-chart3d/dotnet-framework-api/C1.Win.C1Chart3D.4.8/C1.Win.C1Chart3D.Chart3DContour.NumLevels.html) property of the [Chart3DContour](/componentone/api/win/online-chart3d/dotnet-framework-api/C1.Win.C1Chart3D.4.8/C1.Win.C1Chart3D.Chart3DContour.html) object.)

To force a one-to-one match up between contour styles and distribution levels create an array of contour styles with the same number of elements as there are distribution levels. (If it is specified that zone regions be drawn, the array of contour styles must contain one more element than the number of distribution levels. Setting the [IsZoned](/componentone/api/win/online-chart3d/dotnet-framework-api/C1.Win.C1Chart3D.4.8/C1.Win.C1Chart3D.Chart3DContour.IsZoned.html) property of the Chart3DContour object to True specifies zone regions. The extra contour style is used to specify the last zone's fill color.)

## See Also

[Contour Styles Fill Colors](/componentone/docs/win/online-chart3d/3dcontourstyles/contourstylesfillcol)