Click or drag to resize
SoMFieldDeleteValues Method (Int32, Int32)

Deletes num values beginning at index start (index start through start + num -1 will be deleted, and any leftover values will be moved down to fill in the gap created).

Namespace: OIV.Inventor.Fields
Assembly: OIV.Inventor (in OIV.Inventor.dll) Version: 10.12.3.0 (10.12.3.0)
Syntax
public void DeleteValues(
	int start,
	int num
)

Parameters

start
Type: SystemInt32
num
Type: SystemInt32
Remarks

A num of -1 means delete all values from start to the last value in the field; () will return start as the number of values in the field after this operation ( deleteValues(0, -1) empties the field ). However if num is greater than or equal to the number of values in the field, start is ignored and all values are deleted.

If the field's values are stored in an user data array and if the number of values to delete is not zero, a new array is allocated and the user data array is no longer used.

See Also