示例#1
0
        protected void OnParagraphCreated(DocxNode node, Paragraph para)
        {
            DocxParagraphStyle style = new DocxParagraphStyle();

            style.Process(para, node);

            ParagraphCreated?.Invoke(this, new ParagraphEventArgs(para));
        }
        protected void OnParagraphCreated(DocxNode node, Paragraph para)
        {
            DocxParagraphStyle style = new DocxParagraphStyle();
            style.Process(para, node);

            if (ParagraphCreated != null)
            {
                ParagraphCreated(this, new ParagraphEventArgs(para));
            }
        }
示例#3
0
        protected void OnParagraphCreated(DocxNode node, Paragraph para)
        {
            DocxParagraphStyle style = new DocxParagraphStyle();

            style.Process(para, node);

            if (ParagraphCreated != null)
            {
                ParagraphCreated(this, new ParagraphEventArgs(para));
            }
        }
示例#4
0
        private void OnOLParagraphCreated(object sender, ParagraphEventArgs args)
        {
            if (!isParagraphCreated)
            {
                if (args.Paragraph.ParagraphProperties == null)
                {
                    args.Paragraph.ParagraphProperties = new ParagraphProperties();
                }

                SetListProperties(args.Paragraph.ParagraphProperties);

                isParagraphCreated = true;
            }
            else
            {
                DocxParagraphStyle.SetIndentation(args.Paragraph, (gLevelIndex + 1) * indent);
            }
        }