SetVert对齐

SetVertAlliignssTypeapiTextPr}

指定当前运行内容对齐与文本运行默认外观关系:

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

参数:

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

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

返回时间 :

类型
apiTextPr

实例

拷贝代码
builder.CreateFile("pptx")!varoPresentation=api.GetpresentationvaroSlide=oPresentation.getSlideByIndex0oSlide.RemoveAllObjects()!varoFinll =api.CreateSolidFillVarostroke = Api.Createstroke 0,Api.CreatenoFinllVar Oshape = Api.CreateShapeoShape.SetPosition(608400, 1267200)!varoccontent=oshape.getdoccontentvarodente=occontent.getEplement0var ORun=api.CreateRunORun.AddText ("这只是样本文本)oParagraph.AddElement(oRun)!ORun=Api.CreateRunoRun.SetVertAlign("subscript")!ORun.AddText ("这是文本运行文本垂直对齐)oParagraph.AddElement(oRun)!ORun=Api.CreateRunoRun.SetVertAlign("baseline")!ORun.AddText ("这是文本运行 文本垂直对齐)oParagraph.AddElement(oRun)!ORun=Api.CreateRunoRun.SetVertAlign("superscript")!ORun.AddTextoParagraph.AddElement(oRun)!oSlide.AddObject(oShape)!builder.SaveFile("pptx", "SetVertAlign.pptx")!builder.CloseFile();

结果文档