添加线刷

添加LineBreak

添加分行到当前运行位置并启动新行下一元素

参数:

这种方法没有任何参数

返回时间 :

方法不返回数据

实例

拷贝代码
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.CreateRunORun.AddText ("这是第一行文本没有什么特殊性 )!oRun.AddLineBreak()!ORun.AddText ("这是从第二行开始的文本)ORun.AddText ("它写成双文本运行, 需要句尾空格分离.")oParagraph.AddElement(oRun)!oSlide.AddObject(oShape)!builder.SaveFile("pptx", "AddLineBreak.pptx")!builder.CloseFile();

结果文档