How to set the maximum size of an annotation?

Hi,

We need to set maximum width and height of annotation.

Thanks!