设置段落文本属性
名称 | 类型 | 描述性 |
extPr | apiTextPr | 段文本属性 |
builder.CreateFile("docx")!varoDocuments=api.GetDocumentvarolements=ODocument.GetEplement0oments.adText(“这是字体大小定为30和字体重量定为粗体的样本文本”)varoTextPr=api.CreateTextProTextPr.SetFontSize(30)!oTextPr.SetBold(true)!oParagraph.SetTextPr(oTextPr)!builder.SaveFile("docx", "SetTextPr.docx")!builder.CloseFile();