Page.DrawLine method (Visio)
Adds a line to the Shapes collection of a page.
Syntax
expression. DrawLine
( _xBegin_
, _yBegin_
, _xEnd_
, _yEnd_
)
expression A variable that represents a Page object.
Parameters
Name | Required/Optional | Data type | Description |
---|---|---|---|
xBegin | Required | Double | The x-coordinate of the line's begin point. |
yBegin | Required | Double | The y-coordinate of the line's begin point. |
xEnd | Required | Double | The x-coordinate of the line's endpoint. |
yEnd | Required | Double | The y-coordinate of the line's endpoint. |
Return value
Shape
Remarks
Using the DrawLine method is equivalent to using the Line tool in Microsoft Visio. The arguments are in internal drawing units with respect to the coordinate space of the page, master, or group where the line is being placed.
Example
The following example shows how to draw a line shape on the active page.
Public Sub DrawLine_Example()
Dim vsoShape As Visio.Shape
Set vsoShape = ActivePage.DrawLine(5, 4, 7.5, 1)
End Sub
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기