如何用彩色写入文件。 [英] How to write to a file in color.

查看:60
本文介绍了如何用彩色写入文件。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在visual basic中是否有办法以彩色方式写入文件。  目前我正在将一个非常长的字符串的片段转换为其他字符。  字符有一定的颜色。  现在我循环遍历字符串,如果字符串
匹配,那么我将字符附加到富文本框中。  我必须等待整个转换,然后将richtextbox保存到非常长的文件中。  是否无法打开文件并将彩色字符写入文件?



JC

Is there a way in visual basic to write to a file in color.   Currently I'm converting snippets of a very long string into other characters.  The characters have certain colors.  Right now I'm looping through the string and if the string matches, then I append the character to a richtextbox in color.  I have to wait for the entire conversion and then save the richtextbox to file which is extremely long.  Is there no way to open the file and write the colored characters to the file?


J.C.

推荐答案


有没有办法在visual basic中用彩色文件写入。   

Is there a way in visual basic to write to a file in color.   

是否无法打开文件并将彩色字符写入文件?

Is there no way to open the file and write the colored characters to the file?.


这篇关于如何用彩色写入文件。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆