Get Started
Documentation

GetClassType

GetClassType() → { "textPr" }

Get the type of this class.

Parameters:

This method doesn't have any parameters.

Returns:

Type
"textPr"

Example

Copy code
builder.CreateFile("docx");
oDocument = Api.GetDocument();
oTextPr = oDocument.GetDefaultTextPr();
oClassType = oTextPr.GetClassType();
oParagraph = oDocument.GetElement(0);
oParagraph.AddText("Class Type = " + oClassType);
builder.SaveFile("docx", "GetClassType.docx");
builder.CloseFile();

Resulting document