cohtml.Net.ArrayInfo
Represents an array of a type exposed to the scripting.
Inherits from SystemIDisposable
Public Functions
Section titled “Public Functions”| Name | |
|---|---|
| virtual void | Dispose() |
| delegate ulong | LengthGetter(System.IntPtr arrayModelKey) Callback that returns the length of the array. |
| delegate System.IntPtr | ElementGetter(System.IntPtr arrayModelKey, System.UIntPtr index) A callback that returns the key of the nested object or the value of the element. |
| delegate void | ArrayElementBinder(System.IntPtr binderPtr, System.IntPtr arrayModelKey, System.UIntPtr index) Expose only the value of the property to the binder instance. |
| delegate void | ArrayElementReader(System.IntPtr binderPtr, System.IntPtr arrayModelKey, System.UIntPtr index) Sets the new value of the current model read from the binder. |
| void | SetCallbackGetLength(cohtml.Net.ArrayInfo.LengthGetter getLengthCallback) Set a callback that returns the length of the array in the Property. |
| void | SetCallbackGetElement(cohtml.Net.ArrayInfo.ElementGetter getElementCallback) Set a callback that returns an element from the array at a specific index in the property |
| void | SetCallbackBindElement(ArrayInfo.ArrayElementBinder bindElementCallback) Set a callback that binds an element from the array at a specific index in the property |
| ArrayInfo() |
Public Properties
Section titled “Public Properties”| Name | |
|---|---|
| ElementType | Type Type of the elements in the array. |
| global.System.IntPtr | ArrayTypeInfo Type information for elements when Type is ET_UserType; null otherwise. |
| global.System.IntPtr | UserData Pointer to the underlying array or container. May represent the actual container or an abstraction defined by the property implementation. |
Protected Attributes
Section titled “Protected Attributes”| Name | |
|---|---|
| bool | swigCMemOwn |
Public Functions Documentation
Section titled “Public Functions Documentation”function Dispose
Section titled “function Dispose”virtual void Dispose()function LengthGetter
Section titled “function LengthGetter”delegate ulong LengthGetter( System.IntPtr arrayModelKey)Callback that returns the length of the array.
Parameters:
- arrayModelKey The key associated with the registered array model.
Return: The size of the array.
function ElementGetter
Section titled “function ElementGetter”delegate System.IntPtr ElementGetter( System.IntPtr arrayModelKey, System.UIntPtr index)A callback that returns the key of the nested object or the value of the element.
Parameters:
- arrayModelKey The key to the registered array.
- index The index of the searched element.
Return: The value of the element.
function ArrayElementBinder
Section titled “function ArrayElementBinder”delegate void ArrayElementBinder( System.IntPtr binderPtr, System.IntPtr arrayModelKey, System.UIntPtr index)Expose only the value of the property to the binder instance.
Parameters:
- binderPtr A pointer to the binder instanc.
- arrayModelKey The key to the registered array.
- index The index of the searched element.
function ArrayElementReader
Section titled “function ArrayElementReader”delegate void ArrayElementReader( System.IntPtr binderPtr, System.IntPtr arrayModelKey, System.UIntPtr index)Sets the new value of the current model read from the binder.
Parameters:
- binderPtr A pointer to the binder instance.
- arrayModelKey The key to the registered array.
- index The index of the searched element.
function SetCallbackGetLength
Section titled “function SetCallbackGetLength”void SetCallbackGetLength( cohtml.Net.ArrayInfo.LengthGetter getLengthCallback)Set a callback that returns the length of the array in the Property.
Parameters:
- getLengthCallback The callback to be registered.
function SetCallbackGetElement
Section titled “function SetCallbackGetElement”void SetCallbackGetElement( cohtml.Net.ArrayInfo.ElementGetter getElementCallback)Set a callback that returns an element from the array at a specific index in the property
Parameters:
- getElementCallback - the callback to be registered.
function SetCallbackBindElement
Section titled “function SetCallbackBindElement”void SetCallbackBindElement( ArrayInfo.ArrayElementBinder bindElementCallback)Set a callback that binds an element from the array at a specific index in the property
Parameters:
- bindElementCallback - the callback to be registered.
function ArrayInfo
Section titled “function ArrayInfo”ArrayInfo()Public Property Documentation
Section titled “Public Property Documentation”property Type
Section titled “property Type”ElementType Type;Type of the elements in the array.
property ArrayTypeInfo
Section titled “property ArrayTypeInfo”global.System.IntPtr ArrayTypeInfo;Type information for elements when Type is ET_UserType; null otherwise.
property UserData
Section titled “property UserData”global.System.IntPtr UserData;Pointer to the underlying array or container. May represent the actual container or an abstraction defined by the property implementation.
Protected Attributes Documentation
Section titled “Protected Attributes Documentation”variable swigCMemOwn
Section titled “variable swigCMemOwn”bool swigCMemOwn;© 2026 Coherent Labs. All rights reserved.