摘要: //RichText添加选区 颜色 private void ChangeColor(string text, Color color) { //int s = 0; //while ((-1 + text.Length - 1) != (s = text.Length - 1 + this.txtResult.Find(text, s, -1, RichTextBoxFinds.MatchCase | RichTextBoxFinds.WholeWord))) //{ //... 阅读全文
posted @ 2011-09-20 11:39 Shikyoh 阅读(306) 评论(0) 推荐(0) 编辑
摘要: #region 传统读法 object readOnly = true; object missing = System.Reflection.Missing.Value; object fileName = file.FullName; Microsoft.Office.Interop.Word.ApplicationClass wordapp = new ApplicationClass(); //打开指定文件(不同版本的COM参数个数有差异,一般而言除第一个外都用missing... 阅读全文
posted @ 2011-09-20 11:38 Shikyoh 阅读(382) 评论(0) 推荐(0) 编辑