How could you get the current widht of a component?

The basis is set to auto.

How could I get the widht in pixels?

Thanks in advance!