Spread Windows Forms 6.0 Product Documentation
ComplexBorderSide Constructor(Color)
See Also  Example Support Options
FarPoint.Win Assembly > FarPoint.Win Namespace > ComplexBorderSide Class > ComplexBorderSide Constructor : ComplexBorderSide Constructor(Color)


color
Color for the border side

Glossary Item Box

Creates one side of a four-sided, complex border with the specified color.

Syntax

Visual Basic (Declaration) 
Public Function New( _
   ByVal color As Color _
)
Visual Basic (Usage)Copy Code
Dim color As Color
 
Dim instance As New ComplexBorderSide(color)
C# 
public ComplexBorderSide( 
   Color color
)

Parameters

color
Color for the border side

Remarks

Any border side that is created with the CreateBorderSide(color) constructor has the following properties:

  • color specified
  • default width of 1 pixel
  • default dash style of solid
  • empty dash pattern
  • empty compound array

Example

This example creates a red border.
C#Copy Code
FarPoint.Win.ComplexBorderSide side = new FarPoint.Win.ComplexBorderSide(Color.Red);
FarPoint.Win.ComplexBorder bord = new FarPoint.Win.ComplexBorder(side);
Visual BasicCopy Code
Dim side As New FarPoint.Win.ComplexBorderSide(Color.Red)
Dim bord As New FarPoint.Win.ComplexBorder(side)

Requirements

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

See Also

© 2002-2012 ComponentOne, a division of GrapeCity. All Rights Reserved.