public IDocumentOrderedListBuilder Item(Action<IDocumentContextBuilder> options) { var builder = new DocxDocumentParagraphContextBuilder(Document, CreateParagraphProperties(), null); options(builder); var paragraph = builder.ToElement(); Aggregation.Add(paragraph); return this; }
public IDocumentTagContextBuilder Paragraph(Action<IDocumentContextBuilder> options) { var builder = new DocxDocumentParagraphContextBuilder(Document, _contextParagraphProperties, _contextParagraphPrependedElements); options(builder); AppendElements(builder.ToElement()); SaveDocument(); _contextParagraphProperties = null; _contextParagraphPrependedElements = null; return this; }
public IDocumentTagContextBuilder EmptyLine(int count) { var builder = new DocxDocumentParagraphContextBuilder(Document, null, null); for (int i = 0; i < count; i++) AppendElements(builder.ToElement()); SaveDocument(); return this; }
public void Cell(Action<IDocumentContextBuilder> content) { var documentContextBuilder = new DocxDocumentParagraphContextBuilder(Document, null, null); content(documentContextBuilder); Aggregation.AddRange(documentContextBuilder.Aggregation); }