SetFontForm

SetFontFormesapiTextPr}

设置所有四种字体插件并带指定的字体组

参数:

名称 类型 描述性
sontForm 字符串

字体家庭当前文本运行使用

返回时间 :

类型
apiTextPr

实例

拷贝代码
builder.CreateFile("pptx")!varoPresentation=api.GetpresentationvaroSlide=oPresentation.getSlideByIndex0oSlide.RemoveAllObjects()!varoFinll =api.CreateSolidFillvarostroke=api.CreatestrokeVar Oshape = Api.CreateShapeoShape.SetPosition(608400, 1267200)!varoccontent=oshape.getdoccontentvarodente=occontent.getEplement0var ORun=api.CreateRunvaroTextPrssun.getTextProTextPr.SetFontSize(50)!extPr.SetFontFormoParagraph.SetJc("left")!ORUN.AddText ("这是形状内样本文本 字体组集使用文本属性oParagraph.AddElement(oRun)!oSlide.AddObject(oShape)!builder.SaveFile("pptx", "SetFontFamily.pptx")!builder.CloseFile();

结果文档