/// <summary> /// 复制对象 /// </summary> /// <returns>复制品</returns> public RTFColorTable Clone() { RTFColorTable table = new RTFColorTable(); for (int iCount = 0; iCount < myItems.Count; iCount++) { System.Drawing.Color c = (System.Drawing.Color)myItems[iCount]; table.myItems.Add(c); } return(table); }
/// <summary> /// ���ƶ��� /// </summary> /// <returns>����Ʒ</returns> public RTFColorTable Clone() { RTFColorTable table = new RTFColorTable(); for (int iCount = 0; iCount < myItems.Count; iCount++) { System.Drawing.Color c = ( System.Drawing.Color ) myItems[ iCount ] ; table.myItems.Add(c); } return table; }
public RTFColorTable Clone() { var table = new RTFColorTable(); for (var iCount = 0; iCount < _myItems.Count; iCount++) { var c = _myItems[iCount]; table._myItems.Add(c); } return table; }