GetClassType
Returns a type of the ApiCustomProperties class.
Syntax
expression.GetClassType();
expression - A variable that represents a ApiCustomProperties class.
Parameters
This method doesn't have any parameters.
Returns
"customProperties"
Example
Retrieve the class type of a custom properties in a document.
// How to identify the class type of a custom properties in a document?
// Obtain the class type identifier of a custom properties object in a document.
const doc = Api.GetDocument();
const customProps = doc.GetCustomProperties();
const classType = customProps.GetClassType();
let paragraph = doc.GetElement(0);
paragraph.AddText("ApiCustomProperties class type: " + classType);