public ISvgPathSeg AppendItem( ISvgPathSeg newItem ) { if(readOnly) { throw new DomException(DomExceptionType.NoModificationAllowedErr); } else { segments.Add(newItem); setListAndIndex(newItem as SvgPathSeg, segments.Count - 1); return newItem; } }
public void TestReadOnlyAppend() { SvgPathSegList list = new SvgPathSegList("", true); list.AppendItem(getLineto()); }