Spread Windows Forms 13.0 Product Documentation
FarPoint.Win.Spread Assembly / FarPoint.Win.Spread Namespace / FpSpread Class / BorderCollapse Property

In This Topic
    BorderCollapse Property (FpSpread)
    In This Topic
    Gets or sets whether adjacent cell borders are collapsed into a single line for cells in the component.
    Public Property BorderCollapse As BorderCollapse
    Dim instance As FpSpread
    Dim value As BorderCollapse
    instance.BorderCollapse = value
    value = instance.BorderCollapse
    public BorderCollapse BorderCollapse {get; set;}

    Property Value

    BorderCollapse setting that specifies how the borders are displayed
    This example collapses the borders around the cells to diminish thickness.
    fpSpread1.ActiveSheet.Cells[0, 0, 30, 30].Border = new FarPoint.Win.LineBorder(Color.Red, 2);
    fpSpread1.BorderCollapse = FarPoint.Win.Spread.BorderCollapse.Collapse;
    FpSpread1.ActiveSheet.Cells(0, 0, 30, 30).Border = New FarPoint.Win.LineBorder(Color.Red, 2)
    FpSpread1.BorderCollapse = FarPoint.Win.Spread.BorderCollapse.Collapse
    See Also