Visual Basic (Declaration) | |
---|---|
Public Function New( _ ByVal left As ComplexBorderSide, _ ByVal top As ComplexBorderSide, _ ByVal right As ComplexBorderSide, _ ByVal bottom As ComplexBorderSide _ ) |
Visual Basic (Usage) | Copy Code |
---|---|
Dim left As ComplexBorderSide Dim top As ComplexBorderSide Dim right As ComplexBorderSide Dim bottom As ComplexBorderSide Dim instance As New ComplexBorder(left, top, right, bottom) |
C# | |
---|---|
public ComplexBorder( ComplexBorderSide left, ComplexBorderSide top, ComplexBorderSide right, ComplexBorderSide bottom ) |
Parameters
- left
- ComplexBorderSide object to use for left side
- top
- ComplexBorderSide object to use for top side
- right
- ComplexBorderSide object to use for right side
- bottom
- ComplexBorderSide object to use for bottom side
Set any parameter to null to specify a blank border for that side.
This example creates a complex border with the specified ComplexBorderSide objects for each side.
C# | Copy Code |
---|---|
FarPoint.Win.ComplexBorderSide topborder = new FarPoint.Win.ComplexBorderSide(Color.Black, 1.0); FarPoint.Win.ComplexBorderSide leftborder = new FarPoint.Win.ComplexBorderSide(Color.Black, 1.0); FarPoint.Win.ComplexBorderSide rightborder = new FarPoint.Win.ComplexBorderSide(Color.Black, 1.0); FarPoint.Win.ComplexBorderSide bottomborder = new FarPoint.Win.ComplexBorderSide(Color.Black, 3, System.Drawing.Drawing2D.DashStyle.Solid, null, new float[] {0f, 0.33f, 0.66f, 1f}); FarPoint.Win.ComplexBorder bord = new FarPoint.Win.ComplexBorder(leftborder, topborder, rightborder, bottomborder); |
Visual Basic | Copy Code |
---|---|
Dim topborder As New FarPoint.Win.ComplexBorderSide(Color.Black, 1.0) Dim leftborder As New FarPoint.Win.ComplexBorderSide(Color.Black, 1.0) Dim rightborder As New FarPoint.Win.ComplexBorderSide(Color.Black, 1.0) Dim bottomborder As New FarPoint.Win.ComplexBorderSide(Color.Black, 3, System.Drawing.Drawing2D.DashStyle.Solid, Nothing, New Single() {0, 0.33, 0.66, 1}) Dim bord As New FarPoint.Win.ComplexBorder(leftborder, topborder, rightborder, bottomborder) |
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