开发者

c# how to change font size/style when using StreamWriter

StreamWriter SW;
            SW = File.CreateText("c:\\abc.odt");
            SW.WriteLine("fir开发者_如何学Gostline\nTsecondline\nThird line");

When I check the file in the c: directory , It opens up with default font size/style .. any idea how to change them


You are saving a text file, so there is no font information on it. If you want to save rich text use a proper file format, as for example rtf. Obviously to save such a file a plain stream writer is no more enought, so you probably have to explain better what you want to do.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜