赛普Caps

SetCaps(isCaps)apiTextPr}

指定文本运行中小写字符格式化仅显示为基本字母字符等值

参数:

名称 类型 描述性
asCaps 布林安

指定当前运行内容显示为资本化

返回时间 :

类型
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.SetCaps(true)!oParagraph.SetJc("left")!ORun.AddText ("这是形状集内使用文本属性大写文字样本文本")oParagraph.AddElement(oRun)!oSlide.AddObject(oShape)!builder.SaveFile("pptx", "SetCaps.pptx")!builder.CloseFile();

结果文档