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


IMapFrame.RemoveLocatorRectangle 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.RemoveLocatorRectangle Method
ArcGIS Developer Help

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