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


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

IMapFrame.AddLocatorRectangle Method

Add a new locator rectangle to the data frame.

[Visual Basic .NET]
Public Sub AddLocatorRectangle ( _
    ByVal locator As ILocatorRectangle _
)
[C#]
public void AddLocatorRectangle (
    ILocatorRectangle locator
);
[C++]
HRESULT AddLocatorRectangle(
  ILocatorRectangle* locator
);
[C++]
Parameters
locator [in]

locator is a parameter of type ILocatorRectangle*

Product Availability

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

Remarks

AddLocatorRectangle is used to add a new locator rectangle to the current MapFrame.  A locator rectangle represents the extent of another map frame in the page layout.  Use this method to add a reference locator to the map frame.

 

See Also

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