Spread Windows Forms 6.0 Product Documentation
DrawLine Method
See Also  Support Options
FarPoint.Win Assembly > FarPoint.Win Namespace > IBorderGraphics Interface : DrawLine Method


pen
Pen
x1
X coordinate of first point
y1
Y coordinate of first point
x2
X coordinate of second point
y2
Y coordinate of second point

Glossary Item Box

Draws the line.

Syntax

Visual Basic (Declaration) 
Sub DrawLine( _
   ByVal pen As Pen, _
   ByVal x1 As Single, _
   ByVal y1 As Single, _
   ByVal x2 As Single, _
   ByVal y2 As Single _
) 
Visual Basic (Usage)Copy Code
Dim instance As IBorderGraphics
Dim pen As Pen
Dim x1 As Single
Dim y1 As Single
Dim x2 As Single
Dim y2 As Single
 
instance.DrawLine(pen, x1, y1, x2, y2)
C# 
void DrawLine( 
   Pen pen,
   float x1,
   float y1,
   float x2,
   float y2
)

Parameters

pen
Pen
x1
X coordinate of first point
y1
Y coordinate of first point
x2
X coordinate of second point
y2
Y coordinate of second point

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

© 2002-2012 ComponentOne, a division of GrapeCity. All Rights Reserved.