1

I have created a panel, say Panel[""]. I want to know its size/dimensions. Is there any built-in function for doing that?

Piotr Semenov
  • 1,553
  • 12
  • 22
santhosh
  • 41
  • 1

1 Answers1

2

You could get the size of the rasterized panel:

Rasterize[Panel[""]][[2]]

ImageSize -> {18, 33}

Rasterize[Panel["What is my size?"]][[2]]

ImageSize -> {97, 33}

enter image description here

VLC
  • 9,818
  • 1
  • 31
  • 60