cohtml.Net.ArrayInfo

Represents a array of a type exposed to the scripting.

Inherits from SystemIDisposable

Public Functions

Name
virtual voidDispose()
delegate ulongLengthGetter(System.IntPtr arrayModelKey)
Callback that returns the length of the array.
delegate System.IntPtrElementGetter(System.IntPtr arrayModelKey, ulong 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, ulong index)
Expose only the value of the property to the binder instance.
delegate voidArrayElementReader(System.IntPtr binderPtr, System.IntPtr arrayModelKey, ulong 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
ArrayInfo()

Public Properties

Name
ElementTypeType
Type of element in array.
global.System.IntPtrArrayTypeInfo
Contains information about objects in array (methods, attributes etc.)
global.System.IntPtrUserData
Represents pointer to real array.

Protected Attributes

Name
boolswigCMemOwn

Public Functions Documentation

function Dispose

virtual void Dispose()

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

delegate System.IntPtr ElementGetter(
    System.IntPtr arrayModelKey,
    ulong 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

delegate void ArrayElementBinder(
    System.IntPtr binderPtr,
    System.IntPtr arrayModelKey,
    ulong 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

delegate void ArrayElementReader(
    System.IntPtr binderPtr,
    System.IntPtr arrayModelKey,
    ulong 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

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

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 ArrayInfo

ArrayInfo()

Public Property Documentation

property Type

ElementType Type;

Type of element in array.

property ArrayTypeInfo

global.System.IntPtr ArrayTypeInfo;

Contains information about objects in array (methods, attributes etc.)

property UserData

global.System.IntPtr UserData;

Represents pointer to real array.

Protected Attributes Documentation

variable swigCMemOwn

bool swigCMemOwn;