Set Anchors node

I’d like to create some widgets at runtime and add them to a canvas, and set their anchors to my liking. I see there’s a wonderful SetAnchor node, but the documentation… well, leaves a bit to be desired - here.

Can someone point me to a tutorial, a reference, something?
Or at least explain me what the Anchors struct does?

Thanks