/// <inheritdoc/> public override void CloneChildren(Node parentNode) { NodeTreeHelperBlockList.ClearChildBlockList(parentNode, PropertyName); // Clone and insert all blocks. This will clone all children recursively. for (int BlockIndex = 0; BlockIndex < BlockStateList.Count; BlockIndex++) { IReadOnlyBlockState BlockState = BlockStateList[BlockIndex]; ((IReadOnlyBlockState <IReadOnlyInner <IReadOnlyBrowsingChildIndex> >)BlockState).CloneBlock(parentNode, BlockIndex); } // Copy comments. IBlockList BlockList = NodeTreeHelperBlockList.GetBlockList(Owner.Node, PropertyName); IBlockList NewBlockList = NodeTreeHelperBlockList.GetBlockList(parentNode, PropertyName); NodeTreeHelper.CopyDocumentation(BlockList, NewBlockList, cloneCommentGuid: true); }