TRY NEW VERSION

Try now New API BETA

Try out the new view and capabilities of the API documentation

START

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