设置位置

设置定位+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++apiTextPr}

指定此运行提高或下调文本量与环绕非定位文本默认基线相关

参数:

名称 类型 描述性
位移 hps

指定半点正值(增文本)或负值(低文本)测量

返回时间 :

类型
apiTextPr

实例

拷贝代码
builder.CreateFile("docx")!varoDocuments=api.GetDocumentvaromyNewRunStyle1=odocument.CreateStylevaroTextPr1=omyNewRunStyle1.getTextProTextPr1.SetPosition(10)!varolements=ODocument.GetEplement0var ORun=api.CreateRunORun.AddText ("这只是样本文本)oParagraph.AddElement(oRun)!ORun=Api.CreateRunoRun.SetStyle(oMyNewRunStyle1)!ORun.AddText ("这是文本调出5分(10分半点))oParagraph.AddElement(oRun)!varomyNewRunStyle2=oDocument.CreateStylevaroTextPr2soTextPr2.SetPosition(-16)!ORun=Api.CreateRunoRun.SetStyle(oMyNewRunStyle2)!ORun.AddTextoParagraph.AddElement(oRun)!builder.SaveFile("docx", "SetPosition.docx")!builder.CloseFile();

结果文档