IScene3DSeries.RemoveByKey

Syntax

RemoveByKey(Key: Integer): Boolean;

Parameters

Key: Series key.

Description

The RemoveByKey method removes a series by the specified key. The method returns True if a series has been removed successfully, otherwise it returns False.

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;
    key: integer;
Begin
    series := S.Series;
    serie := series.Item(IntegerEdit1.Value);
    key := serie.Key;
    If series.RemoveByKey(key) Then WinApplication.InformationBox("Object is removed");
        Else WinApplication.InformationBox("Error on removal");
    End If;
End Sub UserProc;

Executing the example will remove a series by the specified key.

See also:

IScene3DSeries