AddLine

The AddLine method adds a new line segment. Returns a Curve object.

 

Syntax

object.AddLine( xBeg, yBeg, xEnd, yEnd, UnitType )

 

Parameter

Type

Description

xBeg

Double

required; beginning X coordinate in page units

yBeg

Double

required; beginning Y coordinate in page units

xEnd

Double

required; ending X coordinate in page units

yEnd

Double

required; ending Y coordinate in page units

UnitType

MVCoordDisplayUnits

optional; unit type, default is mvCoordDisplayUnitPageUnits

 

Example

This example demonstrates how to create a line segment.

 

Dim Line As Object

Set Line = MapShapes.AddLine(xBeg:=1, yBeg:=7, xEnd:=4, yEnd:=3)

 

Used by: Shapes collection