How to centrelize a container below the root container in wdDoModifyView
I am using the wdDoModifyView in order to create dynamic UI.
I am building a table in a container and add this container to the root container.
The table is centralised in the new container.
The problem is that at the result the table is not centralized, that is because the container added to the rot is not.
The layout of the root is Grid Layout, so if I would do this at design time I would set the HAlign property of the container below the root one to be center but I don't see this option in the container API. I assume I will need to play a bit with the layouts in runtime.
Can anyone please supply a piece of code for that?
I already wrote it:
Child: MatrixHeadData, hAlign=center