/// <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); }
/// <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); }
/// <summary> /// Write rtf /// </summary> /// <param name="writer">RTF writer</param> public override void Write(Writer writer) { writer.Encoding = Encoding; base.Write(writer); }