ArcObjects Library Reference (Carto)  

IMapFrame.Container Property

The frame's container.

[Visual Basic .NET]
Public Property Container As IGraphicsContainer
[C#]
public IGraphicsContainer Container {get; set;}
[C++]
HRESULT get_Container(
  IGraphicsContainer** Container
);
[C++]
HRESULT putref_Container(
  IGraphicsContainer* Container
);
[C++]

Parameters

Container [out, retval]

  Container is a parameter of type IGraphicsContainer

Container [in]

  Container is a parameter of type IGraphicsContainer

Product Availability

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

Description

The Container property provides access to the PageLayout object that the MapFrame object resides within.  The back pointer to the PageLayout is needed so that the container can be refreshed when the MapFrame is updated via a connection point (i.e., not through the PageLayout itself).

See Also

IMapFrame Interface | MapFrame Class | IMapFrame Interface | IMapFrame.Map Property