Skip to content

Latest commit

 

History

History
63 lines (36 loc) · 1.54 KB

Visio.Master.DrawOval.md

File metadata and controls

63 lines (36 loc) · 1.54 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
Master.DrawOval method (Visio)
vis_sdr.chm10716210
vis_sdr.chm10716210
Visio.Master.DrawOval
092a59d6-1b43-c094-e2ae-480ee7b32b73
06/08/2017
medium

Master.DrawOval method (Visio)

Adds an oval (ellipse) to the Shapes collection of a master.

Syntax

expression. DrawOval( _x1_ , _y1_ , _x2_ , _y2_ )

expression A variable that represents a Master object.

Parameters

Name Required/Optional Data type Description
x1 Required Double The x-coordinate of one corner of the ellipse's width-height box.
y1 Required Double The y-coordinate of one corner of the ellipse's width-height box.
x2 Required Double The x-coordinate of the other corner of the ellipse's width-height box.
y2 Required Double The y-coordinate of the other corner of the ellipse's width-height box.

Return value

Shape

Remarks

Using the DrawOval method is equivalent to using the Ellipse tool in the application. The arguments are in internal drawing units with respect to the coordinate space of the page, master, or group where the ellipse is being placed.

Example

The following example shows how to draw an oval (ellipse) on the active page.

 
Public Sub DrawOval_Example() 
 
 Dim vsoShape As Visio.Shape 
 
 Set vsoShape = ActivePage.DrawOval(1.5, 10.5, 7.5, 6.5) 
 
End Sub

[!includeSupport and feedback]