protected override void ThrowOnInvalidChildElement(TextElement child) { base.ThrowOnInvalidChildElement(child); throw new ArgumentException("Run can't have child elements"); }
protected override void ThrowOnInvalidChildElement(TextElement child) { base.ThrowOnInvalidChildElement(child); throw new ArgumentException("LineBreak can't have any childs"); }
protected override void ThrowOnInvalidChildElement(TextElement child) { base.ThrowOnInvalidChildElement(child); ThrowIfChildIsNoneOfThisTypes(child, typeof(ListItem)); }
/// <summary> /// Appends a child to this element. /// </summary> /// <param name="child">The child to append.</param> public virtual void AppendChild(TextElement child) { ThrowOnInvalidChildElement(child); child.Parent = this; _childs.Add(child); }
protected override void ThrowOnInvalidChildElement(TextElement child) { base.ThrowOnInvalidChildElement(child); ThrowIfChildIsNoneOfThisTypes(child, typeof(BlockUIContainer), typeof(List), typeof(Paragraph), typeof(Section), typeof(Table)); }
protected override void ThrowOnInvalidChildElement(TextElement child) { base.ThrowOnInvalidChildElement(child); throw new ArgumentException("Image can't have any childs", nameof(child)); }