设置斜体属性为文本字符
名称 | 类型 | 描述性 |
义大利语 | 布林安 | 指定当前运行内容显示斜体化 |
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)!oTextPr.SetItalic(true)!oParagraph.SetJc("left")!ORun.AddText ("这是形状内样本文本 字体集到斜字母使用文本属性")oParagraph.AddElement(oRun)!oSlide.AddObject(oShape)!builder.SaveFile("pptx", "SetItalic.pptx")!builder.CloseFile();