[]
        
(Showing Draft Content)

FarPoint.Win.LineBorderFactory.CreateLineBorder

CreateLineBorder Method

CreateLineBorder(Color)

Creates a single-line border with the specified color.

Declaration
public LineBorder CreateLineBorder(Color color)
Public Function CreateLineBorder(color As Color) As LineBorder
Parameters
Type Name Description
Color color

Color of the line

Returns
Type Description
LineBorder

a new instance of LineBorder.

CreateLineBorder(Color, int)

Creates a single-line border with the specified color and thickness.

Declaration
public LineBorder CreateLineBorder(Color color, int thickness)
Public Function CreateLineBorder(color As Color, thickness As Integer) As LineBorder
Parameters
Type Name Description
Color color

Color of the line

int thickness

Thickness of the line in pixels

Returns
Type Description
LineBorder

a new instance of LineBorder.

CreateLineBorder(Color, int, bool, bool, bool, bool)

Creates a single-line border with the specified color and thickness, and specifies on which sides the border is drawn.

Declaration
public LineBorder CreateLineBorder(Color color, int thickness, bool left, bool top, bool right, bool bottom)
Public Function CreateLineBorder(color As Color, thickness As Integer, left As Boolean, top As Boolean, right As Boolean, bottom As Boolean) As LineBorder
Parameters
Type Name Description
Color color

Color of the line

int thickness

Thickness of the line in pixels

bool left

Whether the line is drawn on the left side of the cell

bool top

Whether the line is drawn on the top of the cell

bool right

Whether the line is drawn on the right side of the cell

bool bottom

Whether the line is drawn on the bottom of the cell

Returns
Type Description
LineBorder

a new instance of LineBorder.