CreateTextPr

CreateTextPr()apiTextPr}

创建空文本属性

参数:

这种方法没有任何参数

返回时间 :

类型
apiTextPr

实例

拷贝代码
builder.CreateFile("docx")!varoDocuments=api.GetDocumentvaroTextPr=api.CreateTextProTextPr.SetFontSize(30)!oTextPr.SetBold(true)!oTextPr.SetCaps(true)!extPr.SetColor(515151假)extPr.SetFontFormvaroFinll =api.CreateSolidFillVar.CreateStroke(1*36000,Api.CreateSolidFill(Api.CreateRGBColor(515151)))varoTextart=api.CreateWordArtvarolements=ODocument.GetEplement0oParagraph.AddDrawing(oTextArt)!builder.SaveFile("docx", "CreateTextPr.docx")!builder.CloseFile();

结果文档