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


color
Color of the line
thickness
Thickness of the line, in pixels
left
Whether the line is drawn on the left side of the cell
top
Whether the line is drawn on the top of the cell
right
Whether the line is drawn on the right side of the cell
bottom
Whether the line is drawn on the bottom of the cell

Glossary Item Box

Creates a line border with the specified color and thickness, and on the specified sides.

Syntax

Visual Basic (Declaration) 
Public Function New( _
   ByVal color As Color, _
   ByVal thickness As Integer, _
   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 thickness As Integer
Dim left As Boolean
Dim top As Boolean
Dim right As Boolean
Dim bottom As Boolean
 
Dim instance As New LineBorder(color, thickness, left, top, right, bottom)
C# 
public LineBorder( 
   Color color,
   int thickness,
   bool left,
   bool top,
   bool right,
   bool bottom
)

Parameters

color
Color of the line
thickness
Thickness of the line, in pixels
left
Whether the line is drawn on the left side of the cell
top
Whether the line is drawn on the top of the cell
right
Whether the line is drawn on the right side of the cell
bottom
Whether the line is drawn on the bottom of the cell

Example

This example returns the color of the border.
C#Copy Code
FarPoint.Win.LineBorder lb = new FarPoint.Win.LineBorder(Color.Red);
Color c = lb.Color
MessageBox.Show("The color of the border is " + c.ToString());
Visual BasicCopy Code
Dim lb As New FarPoint.Win.LineBorder(Color.Red)
Dim c As Color = lb.Color
MessageBox.Show("The color of the border is " + c.ToString())

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.