Ejemplo n.º 1
0
        /// <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);
        }
Ejemplo n.º 2
0
 /// <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;
 }
Ejemplo n.º 3
0
 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;
 }