设件粗体

SetBold-sbold-apiTextPr}

设置粗属性文本字符

参数:

名称 类型 描述性
sbord实战 布林安

指定运行内容显示为粗体

返回时间 :

类型
apiTextPr

实例

拷贝代码
builder.CreateFile("docx")!varoDocuments=api.GetDocumentvarOTextPr=ODocument.Get DefaultextProTextPr.SetBold(true)!varolements=ODocument.GetEplement0odtext ("a样本文本 字体权值定为粗体使用文本属性")builder.SaveFile("docx", "SetBold.docx")!builder.CloseFile();

结果文档