Forum > FPSpreadsheet

Center align cell

(1/2) > >>

calm_sea:
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:
Have you added fpsTypes to your uses list?

bobby100:
It won't work that way.
https://forum.lazarus.freepascal.org/index.php?topic=17572.0

dje:

--- Quote from: bobby100 on July 02, 2022, 02:19:17 pm ---It won't work that way.
https://forum.lazarus.freepascal.org/index.php?topic=17572.0

--- End quote ---

OP appears to be talking about TsWorksheetGrid

wp:
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.

Navigation

[0] Message Index

[#] Next page

Go to full version