Array Functions. Perceptive Software Document Composition Studio
Annonce
Annonce
Array Functions
About array functions
The MonaLisa object MLArrays enables you to work with object arrays.
To load the object, use the MonaLisa function GetObject .
Example
GetObject("array","MLArrays")
Properties of the class MLArrays
Property Description
Count Number of elements in the array.
Functions of the Class MLArrays
AddToArray
Appends an element - as a specific type if specified - at the end of the array.
AddToArray
SYNTAX AddToArray(obj, addAsType)
ARGUMENTS obj Object to add. addAsType Element type. This parameter is optional.
Clear
Clears all elements of the array.
Clear
SYNTAX Clear()
GetArray
Returns a typed .NET array.
GetArray
SYNTAX
ARGUMENTS
RETURN
GetArray(type) type Type of the array.
Typed .NET array.
GetAtIndex
Retrieves the element in the array at the specified position.
GetAtIndex
286
SYNTAX
ARGUMENTS
RETURN
GetAtIndex(index) index Zero-based position from which to retrieve the element.
Object contained in the array.
InitFromArrayObject
Initializes the class as array with all elements from the provided arrayObject.
InitFromArrayObject
SYNTAX InitFromArrayObject(arrayObject)
ARGUMENTS arrayObject Object that implements the IList interface.
InsertIntoArray
Inserts an element - as a specific type if specified - into the array at the specified position.
InsertIntoArray
SYNTAX InsertIntoArray(index, obj, addAsType)
ARGUMENTS index Zero-based index at which the value inserts. obj Object to insert. addAsType Element type. This parameter is optional.
287
Download
Annonce