Shape.DrawCircularArc 方法 (Visio)Shape.DrawCircularArc Method (Visio)

创建一个轨迹是圆弧的新建形状,该圆弧由它的弧心、半径以及起角和终角定义。Creates a new shape whose path consists of a circular arc defined by its center, radius, and start and end angles.

语法Syntax

expressionexpression. DrawCircularArc( _xCenter_ , _yCenter_ , _Radius_ , _StartAngle_ , _EndAngle_ )

_表达式_代表Shape对象的变量。expression A variable that represents a Shape object.

参数Parameters

名称Name 必需/可选Required/Optional 数据类型Data type 说明Description
xCenterxCenter 必需Required DoubleDouble 弧心的 x 轴坐标值。The x-coordinate of the center of the arc.
yCenteryCenter 必需Required DoubleDouble 弧心的 y 轴坐标值。The y-coordinate of the center of the arc.
RadiusRadius 必需Required DoubleDouble 弧的半径。The radius of the arc.
StartAngleStartAngle 可选Optional DoubleDouble 以弧度表示的相对于 x 轴的角度,它是弧的起角。默认值为 0。The angle in radians with respect to the x-axis at which to start drawing the arc. The default is 0.
EndAngleEndAngle 可选Optional DoubleDouble 以弧度表示的相对于 x 轴的角度,它是弧的终角。默认值为 pi (3.14592634898)。The angle in radians with respect to the x-axis at which to end the arc. The default is pi (3.14592634898).

返回值Return value

ShapeShape

备注Remarks

默认情况下, DrawCircularArc在绘图页上绘制 180 度的弧。By default, DrawCircularArc draws a 180-degree arc on the drawing page.

示例Example

此 Microsoft Visual Basic for Applications (VBA) 宏显示如何使用DrawCircularArc方法在绘图页上绘制一个弧。This Microsoft Visual Basic for Applications (VBA) macro shows how to use the DrawCircularArc method to draw an arc on the drawing page.

Public Sub DrawCircularArc_Example 
 
 Dim vsoShape As Visio.Shape 
 Set vsoShape = ActivePage.DrawCircularArc(3, 3, 3) 
 
End Sub