SpreadsheetGear 2010
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

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

Copyright © 2003-2010 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.