ClassArrayOnObjRef

public sealed class ClassArrayOnObjRef : IDisposable
Represents a wrapper to an unmanaged "array" (list) of ON_ObjRef instances.

Wrapper for a C++ ON_ClassArray of ON_ObjRef

Constructors

ClassArrayOnObjRef

#Since v5.8
public ClassArrayOnObjRef()
Initializes a new ClassArrayOnObjRef instance.

ClassArrayOnObjRef

#Since v5.8
public ClassArrayOnObjRef(IEnumerable<ObjRef> objrefs)
Initializes a new instances from a set of ObjRefs
objrefs (IEnumerable<ObjRef>)An array, a list or any enumerable set of Rhino object references.

Finalizer

~ClassArrayOnObjRef

#
~ClassArrayOnObjRef()
Passively reclaims unmanaged resources when the class user did not explicitly call Dispose().

Properties

Count

#Since v5.8
public int Count { get; }
Gets the number of ObjRef instances in this array.

Methods

Add

#Since v5.8
public void Add(ObjRef objref)
Adds an ObjRef to the list.
objref (ObjRef)An ObjRef to add.

ConstPointer

#Since v5.8
public nint ConstPointer()
Gets the constant (immutable) pointer of this array.
The constant pointer.

Dispose

#Since v5.8
public void Dispose()
Actively reclaims unmanaged resources that this instance uses.

NonConstPointer

#Since v5.8
public nint NonConstPointer()
Gets the non-constant pointer (for modification) of this array.
The non-constant pointer.

ToNonConstArray

#Since v5.8
public ObjRef[] ToNonConstArray()
Copies the unmanaged array to a managed counterpart.
The managed array.

ToNonConstArray

#Since v7.6
public ObjRef[] ToNonConstArray(RhinoDoc doc)
Copies the unmanaged array to a managed counterpart.
doc (RhinoDoc)Document containing the array of objects
The managed array.