Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
新しい行を表示したい Windows 8 のメール クライアントを使用してテキストを共有したいと考えています。使用するとメモ帳に正しく表示されますが、 の機能では機能し\r\nません。SetTextDataTransferManager
\r\n
SetText
DataTransferManager
重要なのは、HTML でテキストを設定し、文字列として送信しないことです。
共有したいテキストがstring textToShare; HTMLで送信されることに注意してください。したがって、すべての改行文字を次のように置き換える必要があります。<br/>
string textToShare;
<br/>
それ以外の
theRequest.Data.SetText(textToShare);
使用する
theRequest.Data.SetHtmlFormat(HtmlFormatHelper.CreateHtmlFormat(textToShare));