Adds a line to the shapes collection with the specified beginning and ending position.
'Declaration
Function AddLine( _
ByVal As System.Double, _
ByVal As System.Double, _
ByVal As System.Double, _
ByVal As System.Double _
) As IShape
'Usage
Dim instance As IShapes
Dim beginX As System.Double
Dim beginY As System.Double
Dim endX As System.Double
Dim endY As System.Double
Dim value As IShape
value = instance.AddLine(beginX, beginY, endX, endY)
IShape AddLine(
System.double ,
System.double ,
System.double ,
System.double
)
function AddLine(
: System.Double;
: System.Double;
: System.Double;
: System.Double
): IShape;
function AddLine(
: System.double,
: System.double,
: System.double,
: System.double
) : IShape;
IShape* AddLine(
System.double ,
System.double ,
System.double ,
System.double
)
IShape^ AddLine(
System.double ,
System.double ,
System.double ,
System.double
)
Parameters
- beginX
- The beginning X position in points.
- beginY
- The beginning Y position in points.
- endX
- The ending X position in points.
- endY
- The ending Y position in points.
Return Value
A shape object representing the newly created line.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2