IEnumLocator Interface

Provides access to members for retrieving a set of locators.

When To Use

Use the IEnumLocator interface to inspect the set of locators contained in a LocatorEnumerator.

Members

Name Description
Method Clone Creates a copy of the enumeration.
Read-only property Count Number of locators in the enumeration.
Method Next Returns the next locator or locator style.
Method Previous Returns the previous locator or locator style.
Method Reset Resets the enumeration.

IEnumLocator.Clone Method

Creates a copy of the enumeration.

Public Function Clone ( _
) As IEnumLocator
public IEnumLocator Clone (
);

Remarks

The Clone method returns a copy of the locator enumeration.

IEnumLocator.Count Property

Number of locators in the enumeration.

Public ReadOnly Property Count As Integer
public int Count {get;}

Description

The Count property returns the number of locators in the LocatorEnumerator.

IEnumLocator.Next Method

Returns the next locator or locator style.

Public Function Next ( _
) As ILocator
public ILocator Next (
);

Description

The Next method returns the next locator in the LocatorEnumerator.

IEnumLocator.Previous Method

Returns the previous locator or locator style.

Public Function Previous ( _
) As ILocator
public ILocator Previous (
);

Description

The Previous method returns the previous locator in the LocatorEnumerator.

IEnumLocator.Reset Method

Resets the enumeration.

Public Sub Reset ( _
)
public void Reset (
);

Remarks

The Reset method resets the LocatorEnumerator so that the next call to the Next method returns the first locator in the LocatorEnumerator. The Reset method should always be called on a LocatorEnumerator immediately after retrieving it from a locator workspace.

Classes that implement IEnumLocator

Classes Description

Remarks

A LocatorEnumerator can be retrieved from a locator workspace using the ILocatorWorkspace::Locators property.

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.