コード例 #1
0
ファイル: RTFColorTable.cs プロジェクト: yodus/RtfDomParser
        /// <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);
        }
コード例 #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;
 }
コード例 #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;
 }