取表技巧

GetTitle()++{{字符串

返回表标题

参数:

这种方法没有任何参数

返回时间 :

类型
字符串

实例

拷贝代码
builder.CreateFile("docx")!varoDocuments=api.GetDocumentvar表Style=ODocument.CreateStyleoTableStyle.SetBasedOn(oDocument.GetStyle("Bordered"))!var表Pr =o表Style.get表Prvaro表=api.Criate表(3,3)oTable.SetWidth("percent", 100)!oTablePr.SetTableTitle("Table 1")!oTable.SetStyle(oTableStyle)!varolements=ODocument.GetEplement0oddText (表标题:+otablePr.Get表Title ())oDocument.Push(oTable)!builder.SaveFile("docx", "GetTableTitle.docx")!builder.CloseFile();

结果文档