SetVert对齐

SetVertAlliignssTypeapiTextPr}

指定对齐应用运行内容与运行文本默认外观关系

  • 底线- 当前文本运行中的字符将按默认文本基线对齐
  • 下标- 当前文本运行中的字符将在默认文本基线下对齐
  • 上标- 当前文本运行中的字符将比默认文本基线对齐

参数:

名称 类型 描述性
sType系统 底线上标码上标码上标码

垂直对齐类型应用文本内容

返回时间 :

类型
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)!oTextPr.SetVertAlign("superscript")!oParagraph.SetJc("left")!ORun.AddText ("这是形状内文本 垂直对齐设置为'上标'oParagraph.AddElement(oRun)!oSlide.AddObject(oShape)!builder.SaveFile("pptx", "SetVertAlign.pptx")!builder.CloseFile();

结果文档