GetClassType

GetClassType() → { "paragraph" }

Returns a type of the ApiParagraph class.

Parameters:

This method doesn't have any parameters.

Returns:

Type
"paragraph"

Example

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

Resulting document