Table of contents
Collapse the table of content
Expand the table of content

Master.DrawQuarterArc Method (Visio)

office 365 dev account|Last Updated: 6/12/2017
1 Contributor

Creates a shape whose path consists of an elliptical arc defined by the two points and the flag passed in as arguments.


expression . DrawQuarterArc( xBegin , yBegin , xEnd , yEnd , SweepFlag )

expression A variable that represents a Master object.


NameRequired/OptionalData TypeDescription
xBeginRequiredDoubleThe x-coordinate of the begin point of the arc.
yBeginRequiredDoubleThe y-coordinate of the begin point of the arc.
xEndRequiredDoubleThe x-coordinate of the endpoint of the arc.
yEndRequiredDoubleThe y-coordinate of the endpoint of the arc.
SweepFlagRequiredVisArcSweepFlagsThe type of arc, concave or convex.

Return Value



The begin and endpoints define the bounding rectangle of the arc, and the SweepFlag_argument determines which of the two possible arcs within the bounding rectangle is drawn. The bounding rectangle is always aligned to the page coordinate system; that is, the _x -axis of the ellipse is parallel to the x -axis of the page.

The following possible values for the SweepFlag argument are declared in VisArcSweepFlags in the Visio type library.

visArcSweepFlagConcave0Concave arc
visArcSweepFlagConvex1Convex arc

If SweepFlag is visArcSweepFlagConcave , the line joining the center of the ellipse to the arc sweeps through decreasing angles; if it is visArcSweepFlagConvex , it sweeps through increasing angles.


This Microsoft Visual Basic for Applications (VBA) macro shows how to use the DrawQuarterArc method to draw a concave arc on the drawing page.

Public Sub DrawQuarterArc_Example 

 Dim vsoShape As Visio.Shape 
 Set vsoShape = ActivePage.DrawQuarterArc(3, 3, 6, 8, visArcSweepFlagConcave) 

End Sub
© 2018 Microsoft