Пример #1
0
 private void ExportToArray()
 {
     #region radwordsprocessing-formats-and-conversion-rtf-rtfformatprovider_3
     RtfFormatProvider provider = new RtfFormatProvider();
     RadFlowDocument   document = CreateRadFlowDocument();
     string            output   = provider.Export(document);
     #endregion
 }
        private void Validate_Click(object sender, RoutedEventArgs e)
        {
            RtfFormatProvider rtf = new RtfFormatProvider();

            _viewModel.Validate(Id.Text, NameField.Text, rtf.Export(TextEditor.Document), PrevMXEU.Text, PrevMXEUM.Text, PrevMXEM.Text, PrevMXUSLC.Text, place);
            validated = true;
            this.Close();
        }
Пример #3
0
 private void ExportToFile()
 {
     #region radwordsprocessing-formats-and-conversion-rtf-rtfformatprovider_2
     RtfFormatProvider provider = new RtfFormatProvider();
     using (Stream output = File.Create("sample.rtf"))
     {
         RadFlowDocument document = CreateRadFlowDocument();
         provider.Export(document, output);
     }
     #endregion
 }