I would like to programatically set a map to be empty in a mapframe (similar to choosing "<None>" option in a MapFrame). I tried to use mapFrame.SetMap(null) but ArcGIS Pro complains about a null reference object. How do I set the Map to be empty?
When you create a Map frame, if you don't pass in the map, it creates an empty empty map frame.
var mf = LayoutElementFactory.Instance.CreateMapFrame(layout, mf_envelope);
I would like to set the map empty in an existing map frame. And that doesn't seem possible.