ChartDirector 7.1 (.NET Edition)

ContourLayer.addCustomContour


Usage

[C#]public Mark addCustomContour(double z, int contourColor, int contourWidth, char contourLabel [, char font [, int fontSize [, int fontColor ]]]);
[VB]Public Function addCustomContour(z As Double, contourColor As Integer, contourWidth As Integer, contourLabel As char [, font As char [, fontSize As Integer [, fontColor As Integer ]]]) As Mark

Description

Adds a custom contour to the layer.

You can also add a custom contour by using Axis.addMark on the ColorAxis, in which case a label will also be added to the color axis. The addCustomContour method adds the label to the contour without affecting the color axis.

Arguments

ArgumentDefaultDescription
z(Mandatory)The z value of the contour.
contourColor(Mandatory)The contour line color.
contourWidth(Mandatory)The contour line width in pixels.
contourLabel(Mandatory)The text of the contour label.
font"normal"The font used to draw the label.
fontSize8The font size used to draw the label.
fontColorTextColorThe color used to draw the labels.

Return Value

A Mark object representing the custom contour added. You may use this object to fine-tune the appearance of the custom contour.