Exemplo n.º 1
0
        /// <summary>
        /// 创建作文题
        /// </summary>
        /// <param name="rowNum"></param>
        public void CreateWriting(int rowNum)
        {
            int TableWidth = 9629; // 表格宽度
            int ColumnNum  = 20;   // 列数
            //int rowNum = 30; // 行数
            //int wordCount = 600; // 字数

            Table table = new GenerateTable().Create(
                new GenerateTableProperties().Create(TableWidth),
                new GenerateTableGrids().Create(TableWidth, ColumnNum)
                );

            for (int i = 0; i < rowNum; i++)
            {
                table.Append(
                    new GenerateTableSeparateRow().Create(TableWidth, ColumnNum),
                    new GenerateTablePaneRow().Create(TableWidth, ColumnNum)
                    );
            }
            this.body.Append(table);
        }
Exemplo n.º 2
0
        internal void CreateEnglishWriting(int rowNum)
        {
            int         tableWidth = 9629; // 表格宽度
            UInt32Value rowHeight  = 454;  // 表格宽度
            int         columnNum  = 1;    // 列数
            //int rowNum = 30; // 行数
            //int wordCount = 600; // 字数

            Table table = new GenerateTable().Create(
                new GenerateTableProperties().Create(tableWidth),
                new GenerateTableGrids().Create(tableWidth, columnNum)
                );

            for (int i = 0; i < rowNum; i++)
            {
                table.Append(
                    new GenerateTableSeparateRow().CreateSpanRow(tableWidth, rowHeight)
                    );
            }

            this.body.Append(new GenerateBreakLine().Create());
            this.body.Append(new GenerateTextSubTitle().Create("书面表达", "32"));
            this.body.Append(table);
        }