Skip to content
SiteEmail

cohtml.Net.ArrayInfo

Represents an array of a type exposed to the scripting.

Inherits from SystemIDisposable

Name
virtual voidDispose()
delegate ulongLengthGetter(System.IntPtr arrayModelKey)
Callback that returns the length of the array.
delegate System.IntPtrElementGetter(System.IntPtr arrayModelKey, System.UIntPtr index)
A callback that returns the key of the nested object or the value of the element.
delegate voidArrayElementBinder(System.IntPtr binderPtr, System.IntPtr arrayModelKey, System.UIntPtr index)
Expose only the value of the property to the binder instance.
delegate voidArrayElementReader(System.IntPtr binderPtr, System.IntPtr arrayModelKey, System.UIntPtr index)
Sets the new value of the current model read from the binder.
voidSetCallbackGetLength(cohtml.Net.ArrayInfo.LengthGetter getLengthCallback)
Set a callback that returns the length of the array in the Property.
voidSetCallbackGetElement(cohtml.Net.ArrayInfo.ElementGetter getElementCallback)
Set a callback that returns an element from the array at a specific index in the property
voidSetCallbackBindElement(ArrayInfo.ArrayElementBinder bindElementCallback)
Set a callback that binds an element from the array at a specific index in the property
ArrayInfo()
Name
ElementTypeType
Type of the elements in the array.
global.System.IntPtrArrayTypeInfo
Type information for elements when Type is ET_UserType; null otherwise.
global.System.IntPtrUserData
Pointer to the underlying array or container. May represent the actual container or an abstraction defined by the property implementation.
Name
boolswigCMemOwn
virtual void Dispose()
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.

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.

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.
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.
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.
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.
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.
ArrayInfo()
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.

bool swigCMemOwn;