Click or drag to resize
SbNativeArrayTItem Property
Gets or sets the element at the specified index.

Namespace: OIV.Inventor.Generic
Assembly: OIV.Inventor.SbLinear (in OIV.Inventor.SbLinear.dll) Version: 2024.1.1.Release.7989217834dd2b99155f267b6c8c70f9feacdedd
Syntax
public T this[
	int index
] { get; set; }

Parameters

index
Type: SystemInt32
The zero-based index of the element to get or set.

Return Value

Type: T
The element of type T at the specified index.
Exceptions
ExceptionCondition
InvalidOperationExceptionIf the native array is not well known.
IndexOutOfRangeExceptionIf index if out of range.
NotSupportedException If stream is closed. - or - If read/write operation are not supported.
Remarks

If you iterates thought a significant number of elements using this indexer, you may encounter performance issue if the underlying buffer is not a managed buffer (CanGetBuffer returns false).

For better performances, you can consider using the DataPointer property combined with unsafe code to access/modify the underlying native buffer.

See Also