• 大小: 0.29M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-03-26
  • 语言: 其他
  • 标签: 其他  

资源简介


RichTextBox 实现虚拟换页及文字处理如:行扫描,字符扫描,字符操作,查找替换等。

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace WindowsFormsApplication1
{
    public partial class Form1 : Form
    {
        public int flag = 0;//确定当前操作文本框 
        public int temp = 4;//上次操作的文本框值表示纸张对应的this.controls的索引,4为虚拟页索引,0为当前页即richtextbox1的索引,
        public int line = 10;//文本行数
        public int count = 1;//mdi窗口数
        public Form1()
        {
            InitializeComponent();
        }
        public string content;//查找用的暂存数据
        private void mOpen_Click(object sender EventArgs e)
        {//打开
            if (openFileDialog1.ShowDialog() == DialogResult.OK)
            {
                richTextBox1.LoadFile(openFileDialog1.FileName RichTextBoxStreamType.PlainText);
            }

            //计算打开的文件中的字符数
           /* int cn = 0 en = 0 sp = 0;
            char[] Chinese = richTextB

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2013-04-16 10:37  WindowsFormsApplication1\
     目录           0  2013-05-06 10:07  WindowsFormsApplication1\WindowsFormsApplication1\
     文件         920  2013-04-16 19:15  WindowsFormsApplication1\WindowsFormsApplication1.sln
     文件       26112  2013-05-17 23:00  WindowsFormsApplication1\WindowsFormsApplication1.suo
     文件        5800  2013-04-23 23:11  WindowsFormsApplication1\WindowsFormsApplication1\4.1.csproj
     目录           0  2013-04-16 19:18  WindowsFormsApplication1\WindowsFormsApplication1\bin\
     目录           0  2013-04-19 10:18  WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug\
     文件        6773  2013-04-16 12:37  WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug\1
     文件       87552  2013-05-06 10:07  WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.exe
     文件       62976  2013-05-06 10:07  WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.pdb
     文件       14328  2013-05-17 22:19  WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.vshost.exe
     文件         490  2009-06-11 05:14  WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.vshost.exe.manifest
     文件       11886  2013-05-06 10:07  WindowsFormsApplication1\WindowsFormsApplication1\Form1.cs
     文件       40283  2013-04-27 16:40  WindowsFormsApplication1\WindowsFormsApplication1\Form1.Designer.cs
     文件        7822  2013-04-27 16:40  WindowsFormsApplication1\WindowsFormsApplication1\Form1.resx
     文件        3371  2013-05-06 10:06  WindowsFormsApplication1\WindowsFormsApplication1\Form2.cs
     文件        7870  2013-05-06 10:06  WindowsFormsApplication1\WindowsFormsApplication1\Form2.Designer.cs
     文件        5814  2013-05-06 10:06  WindowsFormsApplication1\WindowsFormsApplication1\Form2.resx
     文件        1292  2013-04-20 18:17  WindowsFormsApplication1\WindowsFormsApplication1\Form3.cs
     文件        4516  2013-04-20 13:08  WindowsFormsApplication1\WindowsFormsApplication1\Form3.Designer.cs
     文件        5814  2013-04-20 13:08  WindowsFormsApplication1\WindowsFormsApplication1\Form3.resx
     目录           0  2013-04-16 10:37  WindowsFormsApplication1\WindowsFormsApplication1\obj\
     目录           0  2013-05-06 10:07  WindowsFormsApplication1\WindowsFormsApplication1\obj\Debug\
     文件        1330  2013-05-17 22:19  WindowsFormsApplication1\WindowsFormsApplication1\obj\Debug\4.1.csproj.FileListAbsolute.txt
     文件        1618  2013-05-06 10:06  WindowsFormsApplication1\WindowsFormsApplication1\obj\Debug\4.1.csproj.GenerateResource.Cache
     目录           0  2013-04-16 10:45  WindowsFormsApplication1\WindowsFormsApplication1\obj\Debug\Refactor\
     目录           0  2013-04-23 23:10  WindowsFormsApplication1\WindowsFormsApplication1\obj\Debug\TempPE\
     文件        6656  2013-04-23 23:10  WindowsFormsApplication1\WindowsFormsApplication1\obj\Debug\TempPE\Properties.Resources.Designer.cs.dll
     文件        1213  2013-04-16 19:09  WindowsFormsApplication1\WindowsFormsApplication1\obj\Debug\WindowsFormsApplication1.csproj.FileListAbsolute.txt
     文件         905  2013-04-16 13:21  WindowsFormsApplication1\WindowsFormsApplication1\obj\Debug\WindowsFormsApplication1.csproj.GenerateResource.Cache
     文件       87552  2013-05-06 10:07  WindowsFormsApplication1\WindowsFormsApplication1\obj\Debug\WindowsFormsApplication1.exe
............此处省略29个文件信息

评论

共有 条评论