Help translating this BP Code to C++?

Hey guys! So I bought the Character Interaction Pack from the Unreal Marketplace and wanted to remake the BP_CommentaryBox into C++ code for my own interest. I am stuck at a particular spot in the constructor of that blueprint, specifically under the red circled box in the picture attached. I figured out the C++ corresponding code for everything but whats circled. Does anyone know the C++ method that corresponds to this? Thank you!

That is just created and adding the component URenderTextComponent to the current actor.

UTextRenderComponent* newComponent= NewObject<UTextRenderComponent>(this);
 newComponent->RegisterComponent();

https://docs.unrealengine.com/en-us/Programming/Tutorials/Components/1
http://api.unrealengine.com/INT/API/Runtime/Engine/Components/UTextRenderComponent/