public ISvgPathSeg InsertItemBefore( ISvgPathSeg newItem, int index )
{
if(readOnly)
{
throw new DomException(DomExceptionType.NoModificationAllowedErr);
}
else
{
segments.Insert(index, newItem);
setListAndIndex(newItem as SvgPathSeg, index);
changeIndexes(index+1, 1);
return newItem;
}
}