コード例 #1
0
        /// <summary>Shifts node start, end and all child elements by the specified offset.</summary>
        public override void Shift(int offset)
        {
            StartTag.Shift(offset);

            if (EndTag != null)
            {
                EndTag.Shift(offset);
            }

            if (OrphanedEndTagsCollection != null)
            {
                OrphanedEndTagsCollection.Shift(offset);
            }

            VirtualEnd += offset;

            for (int i = 0; i < Children.Count; i++)
            {
                Children[i].Shift(offset);
            }
        }