GetClassType
Returns a type of the ApiParagraph class.
Syntax
expression.GetClassType();
expression
- A variable that represents a ApiParagraph class.
Parameters
This method doesn't have any parameters.
Returns
"paragraph"
Example
This example gets a class type and inserts it into the document.
- Code
- Result
// How to get the class type of the ApiParagraph.
// Get the class type of the paragraph object.
let doc = Api.GetDocument();
let paragraph = doc.GetElement(0);
let classType = paragraph.GetClassType();
paragraph.AddText("Class Type = " + classType);