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

◆ GetColumnInsertAfterLocation()

XmlNode System.Xml.XmlDataDocument.GetColumnInsertAfterLocation ( DataRow row,
DataColumn col,
XmlBoundElement rowElement )
inlineprivate

Definition at line 618 of file XmlDataDocument.cs.

619 {
620 XmlNode result = null;
621 XmlNode xmlNode = null;
622 if (IsTextOnly(col))
623 {
624 return null;
625 }
626 xmlNode = rowElement.FirstChild;
627 while (xmlNode != null && IsTextLikeNode(xmlNode))
628 {
629 result = xmlNode;
630 xmlNode = xmlNode.NextSibling;
631 }
632 while (xmlNode != null && xmlNode.NodeType == XmlNodeType.Element)
633 {
634 XmlElement e = xmlNode as XmlElement;
635 if (_mapper.GetRowFromElement(e) != null)
636 {
637 break;
638 }
641 {
642 break;
643 }
644 result = xmlNode;
645 xmlNode = xmlNode.NextSibling;
646 }
647 return result;
648 }
DataRow GetRowFromElement(XmlElement e)
DataColumn GetColumnSchemaForNode(XmlBoundElement rowElem, XmlNode node)
static bool IsTextLikeNode(XmlNode n)
bool IsTextOnly(DataColumn c)

References System.Xml.XmlDataDocument._mapper, System.Xml.Dictionary, System.Xml.DataSetMapper.GetColumnSchemaForNode(), System.Xml.DataSetMapper.GetRowFromElement(), System.Xml.XmlDataDocument.IsTextLikeNode(), System.Xml.XmlDataDocument.IsTextOnly(), and System.Ordinal.

Referenced by System.Xml.XmlDataDocument.OnColumnValueChanged().