// Token: 0x06003854 RID: 14420 RVA: 0x000FBE68 File Offset: 0x000FA068 internal static string ConvertXamlToRtf(string xamlContent, Stream wpfContainerMemory) { XamlRtfConverter xamlRtfConverter = new XamlRtfConverter(); if (wpfContainerMemory != null) { xamlRtfConverter.WpfPayload = WpfPayload.OpenWpfPayload(wpfContainerMemory); } return(xamlRtfConverter.ConvertXamlToRtf(xamlContent)); }
// Converts xaml content to rtf content. internal static string ConvertXamlToRtf(string xamlContent, Stream wpfContainerMemory) { // Create XamlRtfConverter to process the converting from Xaml to Rtf XamlRtfConverter xamlRtfConverter = new XamlRtfConverter(); if (wpfContainerMemory != null) { xamlRtfConverter.WpfPayload = WpfPayload.OpenWpfPayload(wpfContainerMemory); } // Process Xaml-Rtf converting string rtfContent = xamlRtfConverter.ConvertXamlToRtf(xamlContent); return(rtfContent); }
// Converts xaml content to rtf content. internal static string ConvertXamlToRtf(string xamlContent, Stream wpfContainerMemory) { // Create XamlRtfConverter to process the converting from Xaml to Rtf XamlRtfConverter xamlRtfConverter = new XamlRtfConverter(); if (wpfContainerMemory != null) { xamlRtfConverter.WpfPayload = WpfPayload.OpenWpfPayload(wpfContainerMemory); } // Process Xaml-Rtf converting string rtfContent = xamlRtfConverter.ConvertXamlToRtf(xamlContent); return rtfContent; }