我没有任何错误,这个属性实际上改变了我的心情文本(在允许我的应用程序访问Skype之后),但它不使用RTF,它只是将我的心情文本设置为{\i Test}而不是Test。我已经尝试创建一个FlowDocument并将其内容转换为RTF,但这也不起作用。
using SKYPE4COMLib; // Reference to Skype4COM.dll
using System;
using System.Runtime.InteropServices;
public static class Program {
public static void Main () {
Skype skype = new Skype();
skype.CurrentUserProfile.RichMoodText = "{\\i Test}";
}
}有没有人想过如何让Skype使用RTF来处理这个情绪文本(而不使用这个富心情编辑器插件)?
发布于 2015-02-13 21:16:59
它不起作用的原因是Skype会寻找HTML标签而不是RTF标签。所以这就是你的问题。Skype.CurrentUserProfile.RichMoodText中可用的HTML标记应该是
<i>Italics</i><b>Bold</b><u>Underline</u><font>Font tags</font>(which includes color and size)<center>Center</center><blink>Blink</blink><a href="http://example.org">Linking</a>这是您代码的固定版本。
using SKYPE4COMLib; // Reference to Skype4COM.dll
using System;
using System.Runtime.InteropServices;
public static class Program {
public static void Main () {
Skype skype = new Skype();
Skype.CurrentUserProfile.RichMoodText = "<i>Test</i>";
}
}https://stackoverflow.com/questions/28504368
复制相似问题