Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ InsertAfter()

XmlAttribute System.Xml.XmlAttributeCollection.InsertAfter ( XmlAttribute newNode,
XmlAttribute? refNode )
inline

Definition at line 176 of file XmlAttributeCollection.cs.

177 {
178 if (newNode == refNode)
179 {
180 return newNode;
181 }
182 if (refNode == null)
183 {
184 return Prepend(newNode);
185 }
186 if (refNode.OwnerElement != parent)
187 {
189 }
190 if (newNode.OwnerDocument != null && newNode.OwnerDocument != parent.OwnerDocument)
191 {
193 }
194 if (newNode.OwnerElement != null)
195 {
197 }
198 int num = FindNodeOffset(refNode.LocalName, refNode.NamespaceURI);
200 if (num2 >= 0 && num2 <= num)
201 {
202 num--;
203 }
204 InsertNodeAt(num + 1, newNode);
205 return newNode;
206 }
static string Xdom_NamedNode_Context
Definition SR.cs:1286
static string Xdom_AttrCol_Insert
Definition SR.cs:1284
Definition SR.cs:7
int RemoveDuplicateAttribute(XmlAttribute attr)
XmlAttribute Prepend(XmlAttribute node)
override XmlNode InsertNodeAt(int i, XmlNode node)
int FindNodeOffset(string name)
virtual ? XmlDocument OwnerDocument
Definition XmlNode.cs:109

References System.Xml.ArgumentException, System.Xml.XmlAttributeCollection.Detach(), System.Xml.Dictionary, System.Xml.XmlNamedNodeMap.FindNodeOffset(), System.Xml.XmlAttributeCollection.InsertNodeAt(), System.Xml.XmlNode.OwnerDocument, System.Xml.XmlNamedNodeMap.parent, System.Xml.XmlAttributeCollection.Prepend(), System.Xml.XmlAttributeCollection.RemoveDuplicateAttribute(), System.SR.Xdom_AttrCol_Insert, and System.SR.Xdom_NamedNode_Context.