How to change HorizontalAlignment

hello everyone,

I'm using TAdvGridWorkbook on Delphi10.

The cell's HorizontalAlignment is the Left ,everytime.
I wanna change to General (not Right).
How to change it ?

for example by Excel Macro
Range("D6").HorizontalAlignment = xlGeneral

best reguards,
Taro

You can change the cell alignment of cells in the grid of the active sheet by:


AdvGridWorkbook1.Grid.Alignments[col,row]: TAlignment;
I could do it.
Thank you very much for your detailed information.
Taro