Center align cell lazarus / 49-FPSpreadsheet ---------------------------------------------------------------------- calm_sea · 2022-07-02 11:44 Hello everybody. I cannot center the contents of the cell. The HorAlignment property does not accept any values. wiki example  Grid.HorAlignment [1,1]: = haCenter doesn't work ---------------------------------------------------------------------- dje · 2022-07-02 12:14 Have you added fpsTypes to your uses list? ---------------------------------------------------------------------- bobby100 · 2022-07-02 12:19 It won't work that way. https://forum.lazarus.freepascal.org/index.php?topic=17572.0 ---------------------------------------------------------------------- dje · 2022-07-02 12:27 Quote from: bobby100 on July 02, 2022, 02:19:17 pmIt won't work that way. https://forum.lazarus.freepascal.org/index.php?topic=17572.0 OP appears to be talking about TsWorksheetGrid ---------------------------------------------------------------------- wp · 2022-07-02 13:15 I don't know what you are doing. What does "doesn't work" mean? Please see in the attached demo that grid.HorAlignment[1,1] is working indeed. ---------------------------------------------------------------------- calm_sea · 2022-07-02 14:50 Quote from: derek.john.evans on July 02, 2022, 02:14:00 pmHave you added fpsTypes to your uses list? No, I was without, Thank you very much, it's OK now.  And thank you all, I am not an English speaker, I am sorry that the message was not very clear