设置字体大小为当前文本运行字符
名称 | 类型 | 描述性 |
nSize | hps | 文本大小值半点测量 |
builder.CreateFile("docx")!varoDocuments=api.GetDocumentvarOTextPr=ODocument.Get DefaultextProTextPr.SetFontSize(30)!varolements=ODocument.GetEplement0odtext ("a样本文本 字体大小定为15分使用文本属性")builder.SaveFile("docx", "SetFontSize.docx")!builder.CloseFile();