Пример #1
0
 /// <summary>
 /// Save rtf to a file
 /// </summary>
 /// <param name="fileName">file name</param>
 public void Save(string fileName)
 {
     using (var writer = new Writer(fileName))
         Write(writer);
 }
Пример #2
0
 /// <summary>
 /// Save rtf to a stream
 /// </summary>
 /// <param name="stream">stream</param>
 public void Save(Stream stream)
 {
     using (var writer = new Writer(new StreamWriter(stream, Encoding)))
         Write(writer);
 }
Пример #3
0
 /// <summary>
 /// Write rtf
 /// </summary>
 /// <param name="writer">RTF writer</param>
 public override void Write(Writer writer)
 {
     writer.Encoding = Encoding;
     base.Write(writer);
 }