public DomAttribute Before(IEnumerable <DomAttribute> previousAttributes) { if (previousAttributes == null) { throw new ArgumentNullException(nameof(previousAttributes)); } SiblingAttributes.InsertRange(AttributePosition, previousAttributes); return(this); }
public DomAttribute Before(DomAttribute previousAttribute) { if (previousAttribute == null) { throw new ArgumentNullException(nameof(previousAttribute)); } SiblingAttributes.Insert(AttributePosition, previousAttribute); return(this); }
public DomAttribute After(DomAttribute nextAttribute) { if (nextAttribute == null) { throw new ArgumentNullException(nameof(nextAttribute)); } SiblingAttributes.Insert(AttributePosition + 1, nextAttribute); return(this); }
public DomAttribute After(IEnumerable <DomAttribute> nextAttributes) { if (nextAttributes == null) { throw new ArgumentNullException(nameof(nextAttributes)); } SiblingAttributes.InsertRange(AttributePosition + 1, nextAttributes); return(this); }