InDesign Server2025
API 20.5.0.49
Collection of MathObject

MathObjects

A collection of math objects.

Properties

NameType AccessDescription
Number readonly The number of objects in the collection.

Methods

MathObject

Returns the MathObject with the specified index.

index Number The index.
MathObject

Creates a new math object.

mathmlDescription? String The MathML description to create the SVG from.
destinationPage? Page The page on which to create the object.
destinationLayer? Layer The layer on which to create the Object. Uses active document layer by default
placePoint? Number[] | String[] unit The point where to place the object (only applicable if page is provided)
withProperties? Object Initial values for properties of the new MathObject
MathObject

Returns any MathObject in the collection.

Number

Displays the number of elements in the MathObject.

MathObject[]

Returns every MathObject in the collection.

MathObject

Returns the first MathObject in the collection.

MathObject

Returns the MathObject with the specified index or name.

index LongInteger | String The index or name. Can accept: Long Integer or String.
MathObject

Returns the MathObject with the specified ID.

id Number The ID.
MathObject

Returns the MathObject with the specified name.

name String The name.
MathObject[]

Returns the MathObjects within the specified range.

from LongInteger | MathObject | String The MathObject, index, or name at the beginning of the range. Can accept: MathObject, Long Integer or String.
to LongInteger | MathObject | String The MathObject, index, or name at the end of the range. Can accept: MathObject, Long Integer or String.
MathObject

Returns the last MathObject in the collection.

MathObject

Returns the middle MathObject in the collection.

MathObject

Returns the MathObject whose index follows the specified MathObject in the collection.

obj MathObject The MathObject whose index comes before the desired MathObject.
MathObject

Returns the MathObject with the index previous to the specified index.

obj MathObject The index of the MathObject that follows the desired MathObject.
String

Generates a string which, if executed, will return the MathObject.

Object of 2

Properties elsewhere that hold a MathObjects.