There is no "shape" attribute. You might look at the "type" attribute, which would return one of the following:
datawindow
bitmap (for Picture)
button
column
compute (for Computed Field)
graph
groupbox
line
ole
ellipse (for Oval)
rectangle
report
roundrectangle
tableblob
text