Hi.
I'm trying to make a rotated map ona layout - i.e. not rotate the map frame itself, but rather the map inside it (since I want it to be on a "landscape" page and some of my data extents are "thin" and long).
I figured out how this can be achieved manually (either by choosing Properties of this map in "Contents" view):

or Map Frame properties on the layout:

Both settings are actually the same one (at least it seems so) and when one is changed, another is also updated automatically.
Here's an example of a map rotated 90 degrees, so that its corresponding north arrow points to the left edge of the layout.

Now, my question is: how can I do this programmatically. I couldn't find any property/method for that.
If I use this - the map frame itself (i.e. the layout element) is rotated, which isn't what I want.
And I need the map frame to remain as it is and the map inside it to rotate.
Thanks.