Пример #1
0
 private void ImportFromString(string input)
 {
     #region radwordsprocessing-formats-and-conversion-rtf-rtfformatprovider_1
     RtfFormatProvider provider = new RtfFormatProvider();
     RadFlowDocument   document = provider.Import(input);
     #endregion
 }
Пример #2
0
 private void ImportFromFile()
 {
     #region radwordsprocessing-formats-and-conversion-rtf-rtfformatprovider_0
     RtfFormatProvider provider = new RtfFormatProvider();
     using (Stream input = File.OpenRead("Sample.rtf"))
     {
         RadFlowDocument document = provider.Import(input);
     }
     #endregion
 }
Пример #3
0
        public void Writecoment(DataRow row)
        {
            if (row == null)
            {
                return;
            }

            String            id      = row["id_comment"].ToString();
            RtfFormatProvider rtf     = new RtfFormatProvider();
            String            comment = _viewModel.FillRecoTextBox(id).ToString();

            if (comment == "")
            {
                CommentReader.Document = new RadDocument();
                return;
            }
            CommentReader.Document = rtf.Import(comment);
        }