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

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

IMapFrame.RemoveAllLocatorRectangles Method

Remove all the locator rectangles from the data frame.

[Visual Basic .NET]
Public Sub RemoveAllLocatorRectangles ( _
public void RemoveAllLocatorRectangles (
HRESULT RemoveAllLocatorRectangles(

Product Availability

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


RemoveAllLocatorRectangles is used to remove all of the locator rectangles within the MapFrame.  Use this method when you have one or more locator rectangles and you want them deleted from the frame.



See Also

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