/// <summary> /// 根据笔画类型构造。 /// </summary> /// <param name="t"></param> public Stroke(strokeType t) { type = t; //name = Enum.GetName(typeof(strokeType), type); points = new List <PointF>(); selectedPointIndex = 0; }
/// <summary> /// 复制构造函数,执行浅复制。 /// <para>如需深复制请使用Clone()函数。</para> /// </summary> /// <param name="s"></param> public Stroke(Stroke s) { type = s.type; //name = Enum.GetName(typeof(strokeType), type); points = s.Points; selectedPointIndex = s.selectedPointIndex; }