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

AppendItem() public method

public AppendItem ( ISvgPathSeg newItem ) : ISvgPathSeg
newItem ISvgPathSeg
return ISvgPathSeg
        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;
            }
        }

Usage Example

 public void TestReadOnlyAppend()
 {
     SvgPathSegList list = new SvgPathSegList("", true);
     list.AppendItem(getLineto());
 }
All Usage Examples Of SharpVectors.Dom.Svg.SvgPathSegList::AppendItem