Spread Windows Forms 11.0 Product Documentation
ComplexBorderSide Constructor(Color,Int32,DashStyle)
Example 


FarPoint.Win Assembly > FarPoint.Win Namespace > ComplexBorderSide Class > ComplexBorderSide Constructor : ComplexBorderSide Constructor(Color,Int32,DashStyle)
Color for this side of the border
Width of this side of the border, in pixels
Style of dashed line for this side of the border; a setting of the .NET Framework's DashStyle enumeration
Creates one side of a four-sided, complex border with the specified color, width, and dash style.
Syntax
'Declaration
 
Public Function New( _
   ByVal color As Color, _
   ByVal width As Integer, _
   ByVal dashStyle As DashStyle _
)
'Usage
 
Dim color As Color
Dim width As Integer
Dim dashStyle As DashStyle
 
Dim instance As New ComplexBorderSide(color, width, dashStyle)
public ComplexBorderSide( 
   Color color,
   int width,
   DashStyle dashStyle
)

Parameters

color
Color for this side of the border
width
Width of this side of the border, in pixels
dashStyle
Style of dashed line for this side of the border; a setting of the .NET Framework's DashStyle enumeration
Remarks

Any border side that is created with the CreateBorderSide(color, width, dashstyle) constructor has the following properties:

Example
This example creates a red border with the specified thickness and dash style.
FarPoint.Win.ComplexBorderSide side = new FarPoint.Win.ComplexBorderSide(Color.Red, 1.5, Drawing2D.DashStyle.Solid);
FarPoint.Win.ComplexBorder bord = new FarPoint.Win.ComplexBorder(side);
Dim side As New FarPoint.Win.ComplexBorderSide(Color.Red, 1.5, Drawing2D.DashStyle.Solid)
Dim bord As New FarPoint.Win.ComplexBorder(side)
See Also

Reference

ComplexBorderSide Class
ComplexBorderSide Members
Overload List