public ISvgPathSeg ReplaceItem(ISvgPathSeg newItem, int index )
{
if(readOnly)
{
throw new DomException(DomExceptionType.NoModificationAllowedErr);
}
else
{
ISvgPathSeg replacedItem = GetItem(index);
segments[index] = newItem;
setListAndIndex(newItem as SvgPathSeg, index);
return replacedItem;
}
}