System.Xml.DataPointer.MoveToFirstChild C# (CSharp) Méthode

MoveToFirstChild() private méthode

private MoveToFirstChild ( ) : bool
Résultat bool
        internal bool MoveToFirstChild()
        {
            RealFoliate();
            AssertValid();
            if (_node == null)
            {
                return false;
            }

            if (_column != null)
            {
                if (_fOnValue)
                {
                    return false;
                }

                _fOnValue = true;
                return true;
            }
            else if (!IsFoliated(_node))
            {
                // find virtual column elements first
                DataColumn c = NextColumn(Row, null, false, false);
                if (c != null)
                {
                    MoveTo(_node, c, _doc.IsTextOnly(c));
                    return true;
                }
            }

            // look for anything
            XmlNode n = _doc.SafeFirstChild(_node);
            if (n != null)
            {
                MoveTo(n);
                return true;
            }

            return false;
        }

Usage Example

 private static void WriteBoundElementContentTo(DataPointer dp, XmlWriter w)
 {
     if (!dp.IsEmptyElement && dp.MoveToFirstChild())
     {
         do
         {
             WriteTo(dp, w);
         }while (dp.MoveToNextSibling());
         dp.MoveToParent();
     }
 }
All Usage Examples Of System.Xml.DataPointer::MoveToFirstChild