Spread Windows Forms 12.0 Product Documentation
DoubleLineBorder Constructor(Color,Boolean,Boolean,Boolean,Boolean)
Example 


FarPoint.Win Assembly > FarPoint.Win Namespace > DoubleLineBorder Class > DoubleLineBorder Constructor : DoubleLineBorder Constructor(Color,Boolean,Boolean,Boolean,Boolean)
Color of the double lines
Whether to draw the left side
Whether to draw the top
Whether to draw the right side
Whether to draw the bottom
Creates a double-line border with the specified color, a width of 3, and sides on which the border is drawn.
Syntax
'Declaration
 
Public Function New( _
   ByVal color As Color, _
   ByVal left As Boolean, _
   ByVal top As Boolean, _
   ByVal right As Boolean, _
   ByVal bottom As Boolean _
)
'Usage
 
Dim color As Color
Dim left As Boolean
Dim top As Boolean
Dim right As Boolean
Dim bottom As Boolean
 
Dim instance As New DoubleLineBorder(color, left, top, right, bottom)
public DoubleLineBorder( 
   Color color,
   bool left,
   bool top,
   bool right,
   bool bottom
)

Parameters

color
Color of the double lines
left
Whether to draw the left side
top
Whether to draw the top
right
Whether to draw the right side
bottom
Whether to draw the bottom
Example
This example returns the thickness of the double lined border.
FarPoint.Win.DoubleLineBorder dbl = new FarPoint.Win.DoubleLineBorder(Color.Yellow, true, false, true, false);
int i = dbl.Thickness;
MessageBox.Show("The thickness of the border is " + i.ToString() + " pixels.");
Dim dbl As New FarPoint.Win.DoubleLineBorder(Color.Yellow, True, False, True, False)
Dim i As Integer = dbl.Thickness
MessageBox.Show("The thickness of the border is " + i.ToString() + " pixels.")
See Also

Reference

DoubleLineBorder Class
DoubleLineBorder Members
Overload List