设置文本属性为当前行
名称 | 类型 | 描述性 |
extPr | apiTextPr | 文本属性设置为当前行 |
builder.CreateFile("docx")!varoDocuments=api.GetDocumentvar表Style=ODocument.CreateStyleoTableStyle.SetBasedOn(oDocument.GetStyle("Bordered"))!varo表=api.Criate表(3,3)oTable.SetWidth("percent", 100)!oTable.SetStyle(oTableStyle)!varoRow=otable.getRow0varoTextPr=api.CreateTextProTextPr.SetBold(true)!oRow.GetCell(0).GetContent().GetElement(0).AddText("First row")!oRow.SetTextPr(oTextPr)!oDocument.Push(oTable)!builder.SaveFile("docx", "SetTextPr.docx")!builder.CloseFile();