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


IMapFrame.RemoveLocatorRectangle Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (Carto)  

IMapFrame.RemoveLocatorRectangle Method

Remove a locator rectangle from the data frame.

[Visual Basic .NET]
Public Sub RemoveLocatorRectangle ( _
    ByVal locator As ILocatorRectangle _
)
[C#]
public void RemoveLocatorRectangle (
    ILocatorRectangle locator
);
[C++]
HRESULT RemoveLocatorRectangle(
  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

RemoveLocatorRectangle is used to remove the specified locator from the MapFrame.  Use this method when you have several locators in the frame and you only want to remove a specific one.

 

See Also

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