How to get canvas size at realtime using C++

Hi,

I have a widget blueprint which inherits from my widget class.
I want to get at runtime the widget’s canvas size.
I have UCanvasPanel pointer, but I’m not sure how to get the canvas’s size from it.

Thanks for advance.

Answer is here!