Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

How to centrelize a container below the root container in wdDoModifyView

Hello,

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?

Thanks,

Roy

Former Member
Former Member replied

I already wrote it:

Container: MatrixLayout

Child: MatrixHeadData, hAlign=center

Armin

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question