Get Started
Usage API
More information

GetClassType

GetClassType() → { "section" }

Get the type of this class.

Parameters:

This method doesn't have any parameters.

Returns:

Type
"section"

Example

Copy code
builder.CreateFile("docx");
oDocument = Api.GetDocument();
oParagraph = oDocument.GetElement(0);
oSection = oDocument.GetFinalSection();
oSection.SetPageMargins(720, 720, 720, 720);
oSection.SetPageSize(7200, 4320);
oClassType = oSection.GetClassType();
oParagraph.AddText("Class Type = " + oClassType);
builder.SaveFile("docx", "GetClassType.docx");
builder.CloseFile();

Resulting document