SharpVectors.Dom.Svg.SvgPathSegList.setListAndIndex C# (CSharp) Method

setListAndIndex() private method

private setListAndIndex ( SvgPathSeg newItem, int index ) : void
newItem SvgPathSeg
index int
return void
        private void setListAndIndex(SvgPathSeg newItem, int index)
        {
            if(newItem != null)
            {
                newItem.setList(this);
                newItem.setIndex(index);
            }
            else
            {
                throw new SvgException(SvgExceptionType.SvgWrongTypeErr, "Can only add SvgPathSeg subclasses to ISvgPathSegList");
            }
        }