ESRI.ArcGIS.Mobile
DrawLine Method
See Also  Send Feedback
ESRI.ArcGIS.Mobile Namespace > Display Class : DrawLine Method

pen
Pen object that determines the color and style of the line.
startCoordinate
A coordinate defining the beginning of the line.
endCoordinate
A coordinate defining the end of the line.
Draws a line as defined by two coordinates using the specified pen.

Syntax

Visual Basic (Declaration) 
Public Sub DrawLine( _
   ByVal pen As Pen, _
   ByVal startCoordinate As Coordinate, _
   ByVal endCoordinate As Coordinate _
) 
C# 
public void DrawLine( 
   Pen pen,
   Coordinate startCoordinate,
   Coordinate endCoordinate
)

Parameters

pen
Pen object that determines the color and style of the line.
startCoordinate
A coordinate defining the beginning of the line.
endCoordinate
A coordinate defining the end of the line.

Exceptions

ExceptionDescription
ArgumentNullExceptionNull coordinate for starting coordinate.
ArgumentNullExceptionNull coordinate for end coordinate.

Requirements

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