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

◆ MoveToPreviousSibling()

bool System.Xml.XPathNodePointer.MoveToPreviousSibling ( )
inlinepackage

Definition at line 771 of file XPathNodePointer.cs.

772 {
773 RealFoliate();
774 if (_node != null)
775 {
776 if (_column != null)
777 {
778 if (_fOnValue)
779 {
780 return false;
781 }
782 DataRow row = Row;
784 {
786 {
788 return true;
789 }
790 }
791 }
792 else
793 {
794 XmlNode xmlNode = _node;
795 XmlNode parentNode = _node.ParentNode;
796 if (parentNode == null)
797 {
798 return false;
799 }
800 bool flag = XmlDataDocument.IsTextNode(_node.NodeType);
801 do
802 {
804 }
805 while ((xmlNode != null && flag && XmlDataDocument.IsTextNode(xmlNode.NodeType)) || (xmlNode != null && !IsValidChild(parentNode, xmlNode)));
806 if (xmlNode != null)
807 {
809 return true;
810 }
811 if (!IsFoliated(parentNode) && parentNode is XmlBoundElement)
812 {
813 DataRow row2 = ((XmlBoundElement)parentNode).Row;
814 if (row2 != null)
815 {
817 if (dataColumn2 != null)
818 {
820 return true;
821 }
822 }
823 }
824 }
825 }
826 return false;
827 }
readonly XmlDataDocument _doc
bool IsValidChild(XmlNode parent, XmlNode child)
DataColumn PreviousColumn(DataRow row, DataColumn col, bool fAttribute)
bool MoveTo(XPathNodePointer pointer)
XmlNode SafePreviousSibling(XmlNode n)
bool IsTextOnly(DataColumn c)
virtual ? XmlNode ParentNode
Definition XmlNode.cs:76
XmlNodeType NodeType
Definition XmlNode.cs:73

References System.Xml.XmlDataDocument.IsTextNode(), System.Xml.XmlNode.NodeType, and System.Xml.XmlNode.ParentNode.

Referenced by System.Xml.DataDocumentXPathNavigator.MoveToPrevious().