Hunny Software Library Reference

Body.InsertBodyPartAt Method 

Inserts a body part at the specified position.

[Visual Basic]
Public Sub InsertBodyPartAt( _
   ByVal index As Integer, _
   ByVal part As BodyPart _
)
[C#]
public void InsertBodyPartAt(
   int index,
   BodyPart part
);

Parameters

index
position in list to insert the BodyPart object (0 <= index <= NumBodyParts)
part
BodyPart object to insert

Remarks

Inserting at position 0 inserts the body part at the beginning. Inserting at position NumBodyParts appends the body part to the end.

Exceptions

Exception TypeCondition
ArgumentOutOfRangeExceptionindex is out of range

See Also

Body Class | Hunny.Mime Namespace