获取Style

GetStyle(styleName)++spiStyle}

依名称返回样式

参数:

名称 类型 描述性
styleName 字符串

样式名

返回时间 :

类型
spiStyle

实例

拷贝代码
builder.CreateFile("docx")!varoDocuments=api.GetDocumentVar OnoScapingStyle=ODocument.GetStylevarolements=ODocument.GetEplement0oParagraph.SetStyle(oNoSpacingStyle)!oclipse.adTextbuilder.SaveFile("docx", "GetStyle.docx")!builder.CloseFile();

结果文档