方法見つけました。
#include "Blueprint/WidgetLayoutLibrary.h"//キャンバスレイアウト
#include "Components/CanvasPanelSlot.h"//配置設定のため
UCanvasPanel* TestCanvas = (UCanvasPanel*)(this->GetWidgetFromName(FName("CanvasPanel")));
UTextBlock* TestText = NewObject<UTextBlock>();
TestText->SetText(FText::FromString("Test"));
TestCanvas->AddChildToCanvas(TestText);//Canvasに追加
UWidgetLayoutLibrary::SlotAsCanvasSlot(TestText)->SetPosition(FVector2D(x, y));
//xとyは整数。これで座標を設定できる。