Clipboard (IClipboard80)

The IClipboard80 interface enables you to add multiple items to the clipboard and then access these items.

 

Properties

 

Count

Gets the number of objects in the clipboard.

Item

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

 

Methods

 

AddObject

Adds an object to the clipboard.

RemoveAll

Removes all objects from the clipboard.

 

Count

Gets the number of items on the clipboard.

 

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: IClipboard80(index).

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

 

JavaScript

 

Item(

       Index)

 

C#

 

dynamic this[object Index] { get; }

 

C++

 

HRESULT Item(

       [in] VARIANT Index,

       [out, retval] VARIANT* pVal)

 

AddObject

Adds an object to the clipboard.

 

JavaScript

 

AddObject(

       ObjectID)

 

C#

 

void AddObject(

       string ObjectID)

 

C++

 

HRESULT AddObject(

       BSTR ObjectID)

Parameters

ObjectID

The ID of the object to add to the clipboard.

Exceptions

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

RemoveAll

Removes all objects from the clipboard.

 

JavaScript

 

RemoveAll

 

C#

 

void RemoveAll()

 

C++

 

HRESULT RemoveAll();

Exceptions

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