RemoveByIndex(Index: Integer): Boolean;
Index - index of a series.
The RemoveByIndex method deletes a series based on the specified index. The method returns True, if a series has been deleted successfully, otherwise it returns False.
This example assumes that there is the S object of the IScene3D type and the IntegerEdit component.
Sub User;
Var
S : IScene3D;
series: IScene3DSeries;
Begin
series := S.Series;
If series.RemoveByIndex(IntegerEdit1.Value) Then WinApplication.InformationBox("Object deleted");
Else WinApplication.InformationBox("Error during deletion");
End If;
End Sub User;
Executing this example will delete a scene series based on the specified index.
See also: