Spread Windows Forms 6.0 Product Documentation
BorderCollapse Property
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > FpSpread Class : BorderCollapse Property


Glossary Item Box

Gets or sets whether adjacent cell borders are collapsed into a single line for cells in the component.

Syntax

Visual Basic (Declaration) 
Public Property BorderCollapse As BorderCollapse
Visual Basic (Usage)Copy Code
Dim instance As FpSpread
Dim value As BorderCollapse
 
instance.BorderCollapse = value
 
value = instance.BorderCollapse
C# 
public BorderCollapse BorderCollapse {get; set;}

Property Value

BorderCollapse setting that specifies how the borders are displayed

Example

This example collapses the borders around the cells to diminish thickness.
C#Copy Code
fpSpread1.ActiveSheet.Cells[0, 0, 30, 30].Border = new FarPoint.Win.LineBorder(Color.Red, 2);
fpSpread1.BorderCollapse = FarPoint.Win.Spread.BorderCollapse.Collapse;
Visual BasicCopy Code
FpSpread1.ActiveSheet.Cells(0, 0, 30, 30).Border = New FarPoint.Win.LineBorder(Color.Red, 2)
FpSpread1.BorderCollapse = FarPoint.Win.Spread.BorderCollapse.Collapse

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.