Exemplo n.º 1
0
        /// <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);
        }
Exemplo n.º 2
0
        public SectionTitle(IInlineElement element, int level)
        {
            if (element == null)
            {
                throw new ArgumentNullException(nameof(element));
            }

            ValidateLevel(level);
            Add(element);
            _level = level;
        }
Exemplo n.º 3
0
    public string Execute(IInlineElement inline)
    {
        var textInline = (Text)inline;

        return(textInline.Content.Trim());
    }