Visual Basic Reference
Shape Property
Returns or sets a value indicating the appearance of a Shape control.
Syntax
object**.Shape** [**=**value]
The Shape property syntax has these parts:
Part | Description |
Object | An object expression that evaluates to an object in the Applies To list. |
Value | An integer specifying the control's appearance, as described in Settings. |
Settings
The settings for value are:
Constant | Setting | Description |
vbShapeRectangle | 0 | (Default) Rectangle |
vbShapeSquare | 1 | Square |
vbShapeOval | 2 | Oval |
vbShapeCircle | 3 | Circle |
vbShapeRoundedRectangle | 4 | Rounded Rectangle |
vbShapeRoundedSquare | 5 | Rounded Square |