Canvas size Unity

It might be useful to pass the canvas size to a unity canvas/panel so UI elements can be easily arranged and would fit within the frame.

Right now I am having canvas elements pin to the top, but it is rather difficult to guess the bottom of the frame containing the view.