IScene3DSeries.FindByKey

Syntax

FindByKey(Key: Integer): IScene3DSerie;

Parameters

Key - key of a scene series.

Description

The FindByKey method finds a scene series based on the specified key.

Example

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

Sub UserProc;
Var
    S : IScene3D;
    series: IScene3DSeries;
    serie : IScene3DSerie;
Begin
    series := S.Series;
    serie := series.FindByKey(IntegerEdit1.Value);
    IntegerEdit1.Value := serie.Type;
End Sub UserProc;

After executing the example the editor displays the index of the found series type.

See also:

IScene3DSeries