Exemplo n.º 1
0
 public void WriteRaw(string txt)
 {
     if (bolCollectionInfo == false)
     {
         if (txt != null)
         {
             myWriter.WriteRaw(txt);
         }
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// 输出颜色表
 /// </summary>
 /// <param name="writer">RTF文档书写器</param>
 public void Write(RTFWriter writer)
 {
     writer.WriteStartGroup();
     writer.WriteKeyword(RTFConsts._colortbl);
     writer.WriteRaw(";");
     for (int iCount = 0; iCount < myItems.Count; iCount++)
     {
         System.Drawing.Color c = (System.Drawing.Color)myItems[iCount];
         writer.WriteKeyword("red" + c.R);
         writer.WriteKeyword("green" + c.G);
         writer.WriteKeyword("blue" + c.B);
         writer.WriteRaw(";");
     }
     writer.WriteEndGroup();
 }