如何将 RichTextBox 内容交换为 HTML
How to exchange RichTextBox Contents to HTML
我想把RichTextBoxContents
换成HTML。
我用的是aspose.word
,不过是试玩版。
前任)
enter image description here
这应该可以指导您大致的方向:
string output = "";
Foreach( line in richtextbox.text)
{
output += $"<p style=\"color:{line.color.name};\">"
output += line
ouput += "</p>";
}
应该给你这样的东西:
<p style="color:red;">This is a the line content.</p>
我正在 phone 如果语法有点不对请见谅
我想把RichTextBoxContents
换成HTML。
我用的是aspose.word
,不过是试玩版。
前任)
enter image description here
这应该可以指导您大致的方向:
string output = "";
Foreach( line in richtextbox.text)
{
output += $"<p style=\"color:{line.color.name};\">"
output += line
ouput += "</p>";
}
应该给你这样的东西:
<p style="color:red;">This is a the line content.</p>
我正在 phone 如果语法有点不对请见谅