Spread Windows Forms 10.0 Product Documentation
ComplexBorder Constructor(ComplexBorderSide,ComplexBorderSide,ComplexBorderSide,ComplexBorderSide)
Example 


ComplexBorderSide object to use for left side
ComplexBorderSide object to use for top side
ComplexBorderSide object to use for right side
ComplexBorderSide object to use for bottom side
Creates a complex border with the specified ComplexBorderSide objects for each side.
Syntax
'Declaration
 
Public Function New( _
   ByVal left As ComplexBorderSide, _
   ByVal top As ComplexBorderSide, _
   ByVal right As ComplexBorderSide, _
   ByVal bottom As ComplexBorderSide _
)
'Usage
 
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)
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
Remarks
Set any parameter to null to specify a blank border for that side.
Example
This example creates a complex border with the specified ComplexBorderSide objects for each side.
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);
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)
Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10

See Also

Reference

ComplexBorder Class
ComplexBorder Members
Overload List

 

 


Copyright © GrapeCity, inc. All rights reserved.