This document is archived and information here might be outdated.  Recommended version.


IMapSurroundFrame.MapFrame Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IM > IMapSurroundFrame Interface > IMapSurroundFrame.MapFrame Property
ArcGIS Developer Help

IMapSurroundFrame.MapFrame Property

The frame element of the map associated with this object's map surround.

[Visual Basic .NET]
Public Property MapFrame As IMapFrame
[C#]
public IMapFrame MapFrame {get; set;}
[C++]
HRESULT get_MapFrame(
  IMapFrame** MapFrame
);
[C++]
HRESULT putref_MapFrame(
  IMapFrame* MapFrame
);
[C++]
Parameters
MapFrame [out, retval]

MapFrame is a parameter of type IMapFrame** MapFrame [in]
MapFrame is a parameter of type IMapFrame*

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Remarks

The MapFrame property returns or sets (by reference) the MapFrame associated with the MapSurround object.  For instance, when a scale bar is added it is linked to a particular MapFrame.  When the scale of the map within the MapFrame is updated, the scale bar in the linked MapSurroundFrame should also update.

Use this property when you want to retrieve of set the MapFrame linked to the MapSurroundFrame object.

See Also

IMapSurroundFrame Interface