IScene3DSeries.IndexByKey

Syntax

IndexByKey(Key: Integer): Integer;

Parameters

Key - scene series key.

Description

The IndexByKey method returns the index of a scene series by the specified key. If no scene series has been found, the property returns -1.

Example

This example assumes that there is the S object of the IScene3D type and the IntegerEdit component.

Sub User;

Var

S : IScene3D;

series: IScene3DSeries;

serie : IScene3DSerie;

Begin

series := S.Series;

serie := series.Add(Scene3DSerieType.Points);

idx := series.IndexByKey(serie.key);

IntegerEdit1.Value := idx;

End Sub User;

After executing the example the editor will show the index of the created series.

See also:

IScene3DSeries