Data Frame Rotation

556
2
Jump to solution
01-21-2014 05:46 AM
DaveCouture
New Contributor III
Using VB.NET, I'm trying to rotate the display view, like the Rotation option in the Data Frame Properties. I can only find VBA codes on it and I'm trying to convert it into .NET, but I'm having trouble. 


            Dim pMap As IMap = My.ArcMap.Document.ActiveView Dim pActiveView As IActiveView = pMap.FocusMap pActiveView.ScreenDisplay.DisplayTransformation.Rotation = 90 pActiveView.Refresh()
0 Kudos
1 Solution

Accepted Solutions
DuncanHornby
MVP Frequent Contributor
I think your code should be:

Dim pActiveView As IActiveView  pActiveView = My.ArcMap.Document.ActiveView pActiveView.ScreenDisplay.DisplayTransformation.Rotation = 90 pActiveView.Refresh()

View solution in original post

0 Kudos
2 Replies
DuncanHornby
MVP Frequent Contributor
I think your code should be:

Dim pActiveView As IActiveView  pActiveView = My.ArcMap.Document.ActiveView pActiveView.ScreenDisplay.DisplayTransformation.Rotation = 90 pActiveView.Refresh()

View solution in original post

0 Kudos
DaveCouture
New Contributor III
Thanks...that did it!
0 Kudos