SetTextPr

setTextPr(oTextPr)+++

设置段落文本属性

参数:

名称 类型 描述性
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();

结果文档