Skip to content

Add Method

Description

Adds a new constant line to the collection of lines.

Syntax

Public Function Add( _
    ByVal [Name](#) As String _
) As [ChartAxisConstantLine](XtremeChartControl~ChartAxisConstantLine.md)

Parameters

  • Name: Text that will be displayed above the line.

Return Type

Reference to the ChartAxisConstantLine that was just added.

Remarks

Constant lines are just that, a constant line drawn in the chart at a specific value along the X or Y axis. You can have as many constant lines as you need.

Constant Line

Example

Dim Line As ChartAxisConstantLine  
Set Line = Diagram.AxisY.ConstantLines.Add("Market Median")  
Line.AxisValue = 200

See Also


Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.