Home Cooker Classes Others Rice CookerGX
Classes  >  element  >  RemoveChildren(int,int)
element class : RemoveChildren(int,int) method

Description

Removes the children elements of the specified number from the specified position.

Syntax

elementInstance.RemoveChildren(int startIndex, int number)

Arguments

ClassNameDescription
intstartIndexIndex that indicates the position of the removing start.
intnumberNumber of remove.

Return value

ClassDescription
list{element}List of elements that was removed.

Sample code

//anyElement is any instance of element type.

int startIndex = 2;

int number = 5;

anyElement.RemoveChildren(startIndex, number);

Notes

startIndex need to be "0 <= startIndex".

number need to be "1 <= number".

startIndex+number need to be "startIndex+number <= number of children".

Links for reference

None

Copyright © Rice All rights reserved.