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

            SiblingAttributes.InsertRange(AttributePosition + 1, nextAttributes);
            return(this);
        }