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

Description

Removes a child element of the specified position from the invoker.

Syntax

elementInstance.RemoveChild(int index)

Arguments

ClassNameDescription
intindexIndex that indicates the position of the child to remove.

Return value

ClassDescription
elementElement that was removed.

Sample code

//anyElement is any instance of element type.

int index = 0;

anyElement.RemoveChild(index);

Notes

Index need to be "0 <= index < number of children".

Links for reference

None

Copyright © Rice All rights reserved.