GetTextPr

GetTextPr()apiTextPr}

返回当前运行文本属性

参数:

这种方法没有任何参数

返回时间 :

类型
apiTextPr

实例

拷贝代码
builder.CreateFile("xlsx")!varoWorksheetvaroFinll =api.CreateSolidFillvarostroke=api.CreatestrokeVar Oshape = oWorksheet.varoccontentssvarodente=occontent.getEplement0var ORun=api.CreateRunvaroTextPrssun.getTextProTextPr.SetFontSize(30)!oParagraph.SetJc("left")!ORun.AddText ("这是形状内样本文本 字体大小定为15分使用文本属性")oParagraph.AddElement(oRun)!builder.SaveFile("xlsx", "GetTextPr.xlsx")!builder.CloseFile();

结果文档