How to change layout Dynamic?

How to change layout dynamic?

You can set the Diagram.Layout programmatically, if that is what you are asking.

Or you can set the particular layout’s properties programmatically too, if you just want to modify how the current layout works.