Spread Windows Forms 7.0 Product Documentation
DoubleLineBorder Constructor(Color,Boolean,Boolean,Boolean,Boolean)
See Also  Example Support Options
FarPoint.Win Assembly > FarPoint.Win Namespace > DoubleLineBorder Class > DoubleLineBorder Constructor : DoubleLineBorder Constructor(Color,Boolean,Boolean,Boolean,Boolean)


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

Glossary Item Box

Creates a double-line border with the specified color, a width of 3, and sides on which the border is drawn.

Syntax

Visual Basic (Declaration) 
Public Function New( _
   ByVal color As Color, _
   ByVal left As Boolean, _
   ByVal top As Boolean, _
   ByVal right As Boolean, _
   ByVal bottom As Boolean _
)
Visual Basic (Usage)Copy Code
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)
C# 
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.
C#Copy Code
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.");
Visual BasicCopy Code
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.")

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

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