SpreadsheetGear
AddLine Method
See Also  Send Feedback
SpreadsheetGear.Shapes Namespace > IShapes Interface : AddLine Method

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.
Adds a line to the shapes collection with the specified beginning and ending position.

Syntax

Visual Basic (Declaration) 
Function AddLine( _
   ByVal beginX As Double, _
   ByVal beginY As Double, _
   ByVal endX As Double, _
   ByVal endY As Double _
) As IShape
C# 
IShape AddLine( 
   double beginX,
   double beginY,
   double endX,
   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 IWorksheetWindowInfo.RowToPoints and IWorksheetWindowInfo.ColumnToPoints to convert row and column positions to points.

Requirements

Platforms: Windows 2000, Windows XP, Windows Vista, Windows Server 2003 and Windows Server 2008. SpreadsheetGear 2009 requires the Microsoft .NET Framework 2.0 and supports .NET 3.0 and .NET 3.5.

See Also

Copyright © 2003-2009 SpreadsheetGear LLC. All Rights Reserved.Help Powered by Innovasys   
SpreadsheetGear is a registered trademark of SpreadsheetGear LLC.
Microsoft, Microsoft Excel and Visual Studio are trademarks or registered trademarks of Microsoft Corporation.