设件粗体

SetBold-sbold-apiTextPr}

设置粗属性文本字符

参数:

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

指定运行内容显示为粗体

返回时间 :

类型
apiTextPr

实例

拷贝代码
builder.CreateFile("xlsx")!varoWorksheetvaroFinll =api.CreateSolidFillvarostroke=api.CreatestrokeVar Oshape = oWorksheet.varoccontentssvarodente=occontent.getEplement0var ORun=api.CreateRunvaroTextPrssun.getTextProTextPr.SetFontSize(30)!oTextPr.SetBold(true)!oParagraph.SetJc("left")!ORun.AddText ("这是形状内样本文本 字体权重设置使用文本属性粗体oParagraph.AddElement(oRun)!builder.SaveFile("xlsx", "SetBold.xlsx")!builder.CloseFile();

结果文档