Page Summary
-
The EquationFunction represents a function within a mathematical Equation element in Google Docs.
-
It can contain other EquationFunctions, EquationFunctionArgumentSeparators, EquationSymbols, and Text elements.
-
The methods available allow for manipulating the element's content, searching within it, accessing its properties, and managing its position within the document structure.
-
You can clear the contents, copy the element, edit its content as text, find specific elements or text within it, and get/set its attributes and link URL.
-
Methods also exist to retrieve child and sibling elements, get the number of children, access the parent element, and remove the element from its parent.
An element representing a function in a mathematical Equation. An EquationFunction may contain EquationFunction, EquationFunctionArgumentSeparator, EquationSymbol, and Text elements. For more
information on document structure, see the guide to extending Google Docs.
Methods
| Method | Return type | Brief description |
|---|---|---|
clear() | Equation | Clears the contents of the element. |
copy() | Equation | Returns a detached, deep copy of the current element. |
edit | Text | Obtains a Text version of the current element, for editing. |
find | Range | Searches the contents of the element for a descendant of the specified type. |
find | Range | Searches the contents of the element for a descendant of the specified type, starting from the
specified Range. |
find | Range | Searches the contents of the element for the specified text pattern using regular expressions. |
find | Range | Searches the contents of the element for the specified text pattern, starting from a given search result. |
get | Object | Retrieves the element's attributes. |
get | Element | Retrieves the child element at the specified child index. |
get | Integer | Retrieves the child index for the specified child element. |
get | String | Retrieves the code corresponding to the equation function. |
get | String|null | Retrieves the link url. |
get | Element|null | Retrieves the element's next sibling element. |
get | Integer | Retrieves the number of children. |
get | Container | Retrieves the element's parent element. |
get | Element|null | Retrieves the element's previous sibling element. |
get | String | Retrieves the contents of the element as a text string. |
get | Text | Gets the text alignment. |
get | Element | Retrieves the element's Element. |
is | Boolean | Determines whether the element is at the end of the Document. |
merge() | Equation | Merges the element with the preceding sibling of the same type. |
remove | Equation | Removes the element from its parent. |
replace | Element | Replaces all occurrences of a given text pattern with a given replacement string, using regular expressions. |
set | Equation | Sets the element's attributes. |
set | |