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


IMapDescriptor.AddMapSurround Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IM > IMapDescriptor Interface > IMapDescriptor.AddMapSurround Method
ArcGIS Developer Help

IMapDescriptor.AddMapSurround Method

Call this multiple times to place surrounds on the surface of the map. Specify coordinates in pixels. Origin is at lower left corner.

[Visual Basic .NET]
Public Sub AddMapSurround ( _
    ByVal surround As IMapSurround, _
    ByVal xPixelOrigin As Integer, _
    ByVal yPixelOrigin As Integer, _
    ByVal AnchorPoint As esriAnchorPointEnum _
)
[C#]
public void AddMapSurround (
    IMapSurround surround,
    int xPixelOrigin,
    int yPixelOrigin,
    esriAnchorPointEnum AnchorPoint
);
[C++]
HRESULT AddMapSurround(
  IMapSurround* surround,
  long xPixelOrigin,
  long yPixelOrigin,
  esriAnchorPointEnum AnchorPoint
);
[C++]
Parameters
surround 

surround is a parameter of type IMapSurround* xPixelOrigin
xPixelOrigin is a parameter of type long yPixelOrigin
yPixelOrigin is a parameter of type long AnchorPoint
AnchorPoint is a parameter of type esriAnchorPointEnum

Product Availability

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

See Also

IMapDescriptor Interface