TRY NEW VERSION

Try now New API BETA

Try out the new view and capabilities of the API documentation

START

GetClassType

GetClassType() → { "textPr" }

Returns a type of the ApiTextPr class.

Parameters:

This method doesn't have any parameters.

Returns:

Type
"textPr"

Example

Copy code
builder.CreateFile("docx");
var oDocument = Api.GetDocument();
var oTextPr = oDocument.GetDefaultTextPr();
oTextPr.SetFontSize(30);
var oParagraph = oDocument.GetElement(0);
oParagraph.AddText("A sample text with the font size set to 15 points using the text properties.");
var sClassType = oTextPr.GetClassType();
oParagraph.AddLineBreak();
oParagraph.AddText("Class Type = " + sClassType);
builder.SaveFile("docx", "GetClassType.docx");
builder.CloseFile();

Resulting document