See Also

IShapes Interface  | IShapes Members  | RowToPoints Method  | ColumnToPoints Method

Requirements

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

Language

Visual Basic

C#

C++

C++/CLI

Show All

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.
See Also Languages SpreadsheetGear The Performance Spreadsheet Component Company 

AddLine Method

SpreadsheetGear.Shapes Namespace > IShapes Interface : AddLine Method

Adds a line to the shapes collection with the specified beginning and ending position.

[Visual Basic]
Overridable Function AddLine( _    ByVal beginX As Double, _    ByVal beginY As Double, _    ByVal endX As Double, _    ByVal endY As Double _ ) As IShape
[C#]
virtual IShape AddLine(    double beginX,    double beginY,    double endX,    double endY );
[C++]
virtual IShape* AddLine(    double beginX,    double beginY,    double endX,    double endY )
[C++/CLI]
virtual 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 Type

A shape object representing the newly created line.

Remarks

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

Requirements

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

See Also

IShapes Interface  | IShapes Members  | RowToPoints Method  | ColumnToPoints Method

 

 


See our live Excel Reporting, Excel Charting, Excel to DataGrid and Excel Calculation Samples.

Copyright © 2003-2007 SpreadsheetGear LLC. All Rights Reserved.

SpreadsheetGear and Spreadsheet Gear are trademarks of SpreadsheetGear LLC.