GetClassType
Returns a type of the ApiTextPr class.
Inherited from ApiTextPr.GetClassType.
Example
Retrieve the class type of a text properties in a document.
// How to identify the class type of a text properties in a document?
// Obtain the class type identifier of a text properties object in a document.
let doc = Api.GetDocument();
let paragraph = doc.GetElement(0);
paragraph.AddText("This is a sample text with the font size set to 30 and the font weight set to bold.");
let textPr = Api.CreateTextPr();
textPr.SetFontSize(32);
textPr.SetBold(true);
paragraph.SetTextPr(textPr);
textPr = paragraph.GetTextPr();
let classType = textPr.GetClassType();
paragraph = Api.CreateParagraph();
paragraph.AddText("Class type: " + classType);
doc.Push(paragraph);