AddEllipse

AddEllipse adds a new ellipse shape. Returns a Polygon object.

Syntax

object.AddEllipse( Left, Bottom, Right, Top )

Parameter

Type

Default

Description

Left

Double

required; This provides the left coordinate

Bottom

Double

required; This provides the bottom coordinate

Right

Double

required; This provides the right coordinate

Top

Double

required; This provides the top coordinate

Remarks

Either page units or map coordinates are used in the parameters. When the ellipse is added to the plot, use page units for the parameters. When the ellipse is added to a map layer, use map coordinates to specify the parameters.

Example 1

This example demonstrates how to create an ellipse.

'declare Ellipse object and create an ellipse

Dim Ellipse As Object

Set Ellipse = Shapes.AddEllipse(Left:=5, Bottom:=7, Right:=6, Top:=10)

Example 2

This script displays all the methods and properties in the Shapes collection.

Used by: Shapes collection