类表示形状
名称 | 描述性 |
GetClassType系统 | 返回类型ApiShape类 |
GetContent | 返回形状内部内容并插入段落或文本运行 |
GetDocCont | 返回形状内部内容并插入段落或文本运行 |
设置布局 | 设置文本嵌入当前形状 |
SetVerticalTextAlign | 设置垂直对齐形状内容可插入段或文本运行 |
builder.CreateFile("xlsx")!varoWorksheetvaroFinll =api.CreateSolidFillvarostroke=api.CreatestrokeVar Oshape = oWorksheet.varoccontentssoDocContent.RemoveAllElements()!oShape.SetVerticalTextAlign("bottom")!varodeptes=api.CreateleoParagraph.SetJc("left")!odtext ("我们从形状上删除所有元素并插入新段内adText(垂直对接底部)oDocContent.Push(oParagraph)!var slassType=oshape.getClassTypeworkshe.GetRange(“A12”).SetValuebuilder.SaveFile("xlsx", "ApiShape.xlsx")!builder.CloseFile();