IScene3DSeries.RemoveByIndex

Syntax

RemoveByIndex(Index: Integer): Boolean;

Parameters

Index - series index.

Description

The RemoveByIndex method removes the series by the specified index. 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;
Begin
    series := S.Series;
    If series.RemoveByIndex(IntegerEdit1.Value) Then WinApplication.InformationBox("Object is removed");
        Else WinApplication.InformationBox("Error on removal");
    End If;
End Sub UserProc;

Executing the example will remove a scene series by the specified index.

See also:

IScene3DSeries