returning to DEFAULT with ComplexBorderSideStyle

Posted by: bdota on 8 September 2017, 2:24 pm EST

  • Posted 8 September 2017, 2:24 pm EST

    I am reading a boolean variable to determine what to use for border styles.

    for example when it is True I can say

    nStyle = new ComplexBorderSide(ComplexBorderSideStyle.Dotted);  

    good.  but when it is False I want to say use the DEFAULT style . but I cannot find the Defualt in the enumeration members of  ComplexBorderSideStyle

     

    ... so what do you propose?  

  • Replied 8 September 2017, 2:24 pm EST

    I think I got it:  ComplexBorderSideStyle.None

    correct me if wrong, thanks 

  • Replied 8 September 2017, 2:24 pm EST

    Hello,


    Yes it is correct to set ComplexBorderSideStyle to enum None in case you don't want any borders in cells.



                FarPoint.Win.ComplexBorderSide side = new FarPoint.Win.ComplexBorderSide(ComplexBorderSideStyle.None);
                FarPoint.Win.ComplexBorder bord = new FarPoint.Win.ComplexBorder(side);
                fpSpread1_Sheet1.ActiveCell.Border = bord;


    Thanks.

Need extra support?

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

Learn More

Forum Channels