Visual Basic (Declaration) | |
---|---|
Public Function New( _ ByVal color As Color, _ ByVal width As Integer _ ) |
Visual Basic (Usage) | Copy Code |
---|---|
Dim color As Color Dim width As Integer Dim instance As New ComplexBorderSide(color, width) |
Parameters
- color
- Color for this side of the border
- width
- Width of this side of the border, in pixels
Any border side that is created with the CreateBorderSide(color, width) constructor has the following properties:
- color specified
- width specified
- default dash style of solid
- empty dash pattern
- empty compound array
This example creates a red border with the specified thickness.
C# | Copy Code |
---|---|
FarPoint.Win.ComplexBorderSide side = new FarPoint.Win.ComplexBorderSide(Color.Red, 1.5); FarPoint.Win.ComplexBorder bord = new FarPoint.Win.ComplexBorder(side); |
Visual Basic | Copy Code |
---|---|
Dim side As New FarPoint.Win.ComplexBorderSide(Color.Red, 1.5) Dim bord As New FarPoint.Win.ComplexBorder(side) |
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2