Spread Windows Forms 8.0 Product Documentation
DrawLine Method


Pen
X coordinate of first point
Y coordinate of first point
X coordinate of second point
Y coordinate of second point
Draws the line.
Syntax
'Declaration
 
Sub DrawLine( _
   ByVal pen As Pen, _
   ByVal x1 As Single, _
   ByVal y1 As Single, _
   ByVal x2 As Single, _
   ByVal y2 As Single _
) 
'Usage
 
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)
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 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8

See Also

Reference

IBorderGraphics Interface
IBorderGraphics Members

 

 


Copyright © GrapeCity, inc. All rights reserved.