Add borderline

Posted by: patrik on 23 August 2020, 11:34 pm EST

  • Posted 23 August 2020, 11:34 pm EST

      Dim b As New FarPoint.Win.LineBorder(Color.Black, 1)
    Dim cr As New FarPoint.Win.Spread.Model.CellRange(1, 1, 5, .ColumnCount - 1)
    .SetOutlineBorder(cr, b)

    This code add borderline around of a cellrange.
    The problem is that it remove the old borderline around the cell.

    Is there a way to only add borderline and keep the old around the cell?
  • Marked as Answer

    Replied 24 August 2020, 5:05 pm EST


    That is correct behavior as the Border object assigned to the cell gets changed when you add a second border.
    I have attached an application with a solution to workaround it, please check.

  • Replied 25 August 2020, 3:48 pm EST

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels