SpreadsheetGear 2023
AddLine Method (IShapes)


SpreadsheetGear.Shapes Namespace > IShapes Interface : AddLine Method
The beginning X position in points.
The beginning Y position in points.
The ending X position in points.
The ending Y position in points.
Adds a line to the shapes collection with the specified beginning and ending position.
Syntax
'Declaration
 
Function AddLine( _
   ByVal beginX As System.Double, _
   ByVal beginY As System.Double, _
   ByVal endX As System.Double, _
   ByVal endY 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 beginX,
   System.double beginY,
   System.double endX,
   System.double endY
)

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.
Remarks

Use SpreadsheetGear.IWorksheetWindowInfo.RowToPoints and SpreadsheetGear.IWorksheetWindowInfo.ColumnToPoints to convert row and column positions to points.

Requirements

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

See Also

Reference

IShapes Interface
IShapes Members
RowToPoints Method
ColumnToPoints Method