This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IM > IMapSurroundFrame Interface > IMapSurroundFrame.MapFrame Property (ArcObjects .NET 10.5 SDK) |
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
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.