OPC Studio User's Guide and Reference
GetAt Method (ElasticVector)



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib.Collections Namespace > ElasticVector Class : GetAt Method
The index of the element to get.
Gets the element at the specified index.
Syntax
'Declaration
 
Public Function GetAt( _
   ByVal index As Integer _
) As Object
'Usage
 
Dim instance As ElasticVector
Dim index As Integer
Dim value As Object
 
value = instance.GetAt(index)
public object GetAt( 
   int index
)
public:
Object^ GetAt( 
   int index
) 

Parameters

index
The index of the element to get.

Return Value

The element with the specified index.

This method can return null (Nothing in Visual Basic).

Remarks

The elasticity dot not apply in this method. The index must fall into the current bounds of the elastic vector.

Requirements

Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows

See Also