InsertValueLabel Method (AAxis)

Inserts a value-label to the collection of value-labels and returns the index to the added value-label on the object.

Syntax

Object.InsertValueLabel ( lValueLabelIndex, sLabel, dValue )

The InsertValueLabel method syntax has the following parts:

 

Name

Type

Description

Object

AAxis

AAxis object.

lValueLabelIndex

Val Long

An integer specifying the index of the value-label on the object.

sLabel

Val BString

A string used to name the label at the specified index on the object. This property is read-only at run time.

dValue

Val Double

The value associated with the value-label at the specified index.

Comments

If the index is out of the current range, then the value-label will be appended to the end of the collection.

Example

The following example will insert a value-label with a label of "Speed Limit" and a value of 55 to an AAxis object at the 5th index:

aaxs1.InsertValueLabel(4,"Speed Limit",55)

Applies to

AAxis

See Also

GetValueLabel, MoveValueLabel, RemoveValueLabel, SetValueLabel