Xceed SmartUI for WinForms v3.6 Documentation
DrawLine Method


Xceed.SmartUI.v3.6 Assembly > Xceed.SmartUI Namespace > SmartPaint Class : DrawLine Method
A System.Drawing.Color structure representing the color of the line.
A System.Drawing.Point representing the point at which to begin drawing the line.
A System.Drawing.Point representing the point at which to stop drawing the line.
Draws the line with the specified color from the first point to the second.
Syntax
'Declaration
 
Public Sub DrawLine( _
   ByVal color As Color, _
   ByVal point1 As Point, _
   ByVal point2 As Point _
) 
'Usage
 
Dim instance As SmartPaint
Dim color As Color
Dim point1 As Point
Dim point2 As Point
 
instance.DrawLine(color, point1, point2)
public void DrawLine( 
   Color color,
   Point point1,
   Point point2
)

Parameters

color
A System.Drawing.Color structure representing the color of the line.
point1
A System.Drawing.Point representing the point at which to begin drawing the line.
point2
A System.Drawing.Point representing the point at which to stop drawing the line.
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

Reference

SmartPaint Class
SmartPaint Members