GetFormType

GetFormTypeFormType}

继承发件人 :ApiFormBase#GetFormType

返回当前表单类型

参数:

这种方法没有任何参数

返回时间 :

类型
FormType

实例

拷贝代码
builder.CreateFile("docx")!varoDocuments=api.GetDocumentVar OpictroForm = Api.CreatePictureFormvarolements=ODocument.GetEplement0oParagraph.AddElement(oPictureForm)!oPictureForm.SetImage("https://api.onlyoffice.com/content/img/docbuilder/examples/user-profile.png")!var sformType = oPictureForm.GetFormTypeodeptes = Api.Createlementsodtext (sorm类型:+sormType)oDocument.Push(oParagraph)!builder.SaveFile("docx", "GetFormType.docx")!builder.CloseFile();

结果文档