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)); } }
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); } }