using System; using System.Collections.Generic; using System.Text; using System.Drawing; namespace Svg.Pathing { public class SvgMoveToSegment : SvgPathSegment { public SvgMoveToSegment(PointF moveTo) { this.Start = moveTo; this.End = moveTo; } public override void AddToPath(System.Drawing.Drawing2D.GraphicsPath graphicsPath) { if (this.Start != this.End) { graphicsPath.StartFigure(); } } public override string ToString() { return "M" + this.Start.ToSvgString(); } } }