ISelection80

This interface provides the methods for adding, removing, and accessing objects from the selection buffer.

 

 

Properties

 

Count

Gets the number of features in the selection buffer.

Item

Gets the ITerraExplorerObject80 element in the specified zero-based index.

 

Methods

 

Add

Adds an object to the selection buffer.

CanAdd

Gets a Boolean that identifies if the object can be added to the selection buffer.

Remove

Removes an object from the selection buffer

RemoveAll

Removes all objects from the selection buffer.

 

 

Count

Gets the number of features in the selection buffer.

 

JavaScript

 

Count

 

C#

 

int Count { get; }

 

C++

 

HRESULT Count([out, retval] long* pVal);

 

Item

Gets the ITerraExplorerObject80 element in the specified zero-based index.

To access a specific element use the following syntax: ISelection80(index).

C# exposes this property as an indexer accessed using the following syntax: ISelection80[index].

 

JavaScript

 

Item(Index)

 

C#

 

dynamic this[object Index] { get; }

 

C++

 

HRESULT Item(

       [in] VARIANT Index,

       [out, retval] VARIANT* pVal)

 

Add

Adds an object to the selection buffer.

JavaScript

 

Add(

       ObjectID)   

 

C#

 

bool Add (

       string ObjectID)   

 

C++

 

HRESULT Add (

       BSTR ObjectID)

Parameters

ObjectID

The ID of the object to be added to the selection buffer

Exceptions

See: HRESULT Return Values for a list of possible values returned by the HRESULT.

 

CanAdd

Gets a Boolean that identifies if the object can be added to the selection buffer.

JavaScript

 

CanAdd(

       ObjectID)   

 

C#

 

bool CanAdd (

       string ObjectID)   

 

C++

 

HRESULT CanAdd (

       BSTR ObjectID

       VARIANT_BOOL* pVal)

Parameters

ObjectID

The ID of the object whose suitability for addition to the selection buffer is being checked.

Return Value

pVal

A Boolean that determines if the object can be added to the selection buffer.

Exceptions

See: HRESULT Return Values for a list of possible values returned by the HRESULT.

 

Remove

Removes an object from the selection buffer.

JavaScript

 

Remove(

       ObjectID)   

 

C#

 

bool Remove (

       string ObjectID)   

 

C++

 

HRESULT Remove (

       BSTR ObjectID)

Parameters

ObjectID

The ID of the object to be removed.

Exceptions

See: HRESULT Return Values for a list of possible values returned by the HRESULT.

RemoveAll

Removes all objects from the selection buffer.

JavaScript

 

RemoveAll() 

 

C#

 

bool RemoveAll()   

 

C++

 

HRESULT RemoveAll()

Exceptions

See: HRESULT Return Values for a list of possible values returned by the HRESULT.