/// <summary> /// Initializes a new instance of the <see cref="Paragraph"/> class. /// </summary> /// <param name="element">The element.</param> /// <exception cref="System.ArgumentNullException"></exception> public Paragraph(IInlineElement element) { if (element == null) { throw new ArgumentNullException(nameof(element)); } Add(element); }
public SectionTitle(IInlineElement element, int level) { if (element == null) { throw new ArgumentNullException(nameof(element)); } ValidateLevel(level); Add(element); _level = level; }
public string Execute(IInlineElement inline) { var textInline = (Text)inline; return(textInline.Content.Trim()); }