예제 #1
0
        private string getMessage(Form2 f)
        {
            string strBuf = "";

            f.SetProgressMax(richTextBox1.TextLength);

            //目次の埋め込み
            if (checkBox1.Checked == true)
            {
                strBuf = "{{toc}}\n\n";
            }

            for (int i = 0; i < richTextBox1.TextLength; ++i)
            {
                f.SetProgressBar(1);
                strBuf += convertStyleStr(i);
            }

            //変換ミスなどの削除
            strBuf = strBuf.Replace("** \n", "\n");
            strBuf = strBuf.Replace("__ \n", "\n");

            return(strBuf);
        }
예제 #2
0
        private string getMessage(Form2 f)
        {
            string strBuf = "";
            f.SetProgressMax(richTextBox1.TextLength);

            //目次の埋め込み
            if (checkBox1.Checked == true)
            {
                strBuf = "{{toc}}\n\n";
            }

            for (int i = 0; i < richTextBox1.TextLength; ++i)
            {
                f.SetProgressBar(1);
                strBuf += convertStyleStr(i);
            }

            //変換ミスなどの削除
            strBuf = strBuf.Replace("** \n", "\n");
            strBuf = strBuf.Replace("__ \n", "\n");

            return strBuf;
        }