default cell alignment

Posted by: bnogueira on 8 September 2017, 1:32 pm EST

  • Posted 8 September 2017, 1:32 pm EST


    How to set the default cell alignment. Currently is top-right justified. I know that I can do this by setting fspread1.Sheets[0].Rows.Default.VerticalAlignment, but in this way I would have to set all sheets manually. 

  • Replied 8 September 2017, 1:32 pm EST

    You will always have to set this on the sheet level...

    FpSpread1.ActiveSheet.DefaultStyle.VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center
    FpSpread1.ActiveSheet.DefaultStyle.HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center

Need extra support?

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

Learn More

Forum Channels