QuickOPC User's Guide and Reference
Resize Method (ElasticVector)



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib.Collections Namespace > ElasticVector Class : Resize Method
The new size of the elastic vector.
Changes the number of elements of an elastic vector to the specified new size.
Syntax
'Declaration
 
Public Sub Resize( _
   ByVal newSize As Integer _
) 
'Usage
 
Dim instance As ElasticVector
Dim newSize As Integer
 
instance.Resize(newSize)
public void Resize( 
   int newSize
)
public:
void Resize( 
   int newSize
) 

Parameters

newSize
The new size of the elastic vector.
Remarks

As opposed to Resize, the elastic vector does not have to be zero-based

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