Exemplo n.º 1
0
        public XGraphicsPathItem Clone()
        {
            XGraphicsPathItem item = (XGraphicsPathItem)MemberwiseClone();

            item.Points = (XPoint[])Points.Clone();
            return(item);
        }
        public XGraphicsPathItem Clone()
        {
            XGraphicsPathItem item = MemberwiseClone() as XGraphicsPathItem;

            item.points = this.points.Clone() as XPoint[];
            return(item);
        }
Exemplo n.º 3
0
 /// <summary>
 /// For internal use only.
 /// </summary>
 internal XGraphicsPathItem[] GetPathData()
 {
   int count = this.items.Count;
   XGraphicsPathItem[] data = new XGraphicsPathItem[count];
   for (int idx = 0; idx < count; idx++)
     data[idx] = ((XGraphicsPathItem)this.items[idx]).Clone() as XGraphicsPathItem;
   return data;
 }