public static void SaveFileAs(RichTextDocument doc) { SaveFileDialog sfd = new SaveFileDialog() { CheckPathExists = true, ValidateNames = true, AddExtension = true, Title = "Save File - MDI Sample", Filter = "Text files (*.rtf)|*.rtf" }; if (sfd.ShowDialog() == DialogResult.OK) { doc.Location = sfd.FileName; RtdSaver.Save(doc); } }
override public void SaveFileAs() { RtdSaver.SaveFileAs(document); }