| Name | Type | Description |
|---|---|---|
| x |
Double
|
|
| y |
Double
|
|
| Width |
Double
|
|
| Height |
Double
|
|
| UseOutline |
Boolean
|
Specifies whether outlines are considered when calculating the size of the bounding box. If this value is set to True, shape outlines are taken into account when calculating the dimensions of the bounding box; otherwise, the shapes are treated as though they have no outline. |
Sub Test() Dim s As Shape Dim sr As ShapeRange Dim x As Double, y As Double, w As Double, h As Double Set s = ActiveLayer.CreateEllipse(1, 2, 3, 4) ActiveDocument.ReferencePoint = cdrCenter Set sr = ActivePage.Shapes.All sr.GetBoundingBox x, y, w, h ActiveLayer.CreateRectangle2 x, y, w, y End Sub