GetClassType
function GetClassType(): run
Description
Returns a type of the ApiRun class.
Returns
run
Overloads
- GetClassType
()
Returns a type of the ApiTextPr class.
Try It
var oDocument = Api.GetDocument();
var oParagraph = oDocument.GetElement(0);
var oRun = Api.CreateRun();
oRun.AddText("This is just a sample text. Nothing special.");
oParagraph.AddElement(oRun);
var sClassType = oRun.GetClassType();
oParagraph = Api.CreateParagraph();
oParagraph.AddText("Class Type = " + sClassType);
oDocument.Push(oParagraph);