GetAllShape

GetAllShapes数组 }

返回段内形状对象集合

参数:

这种方法没有任何参数

返回时间 :

类型
数组

实例

拷贝代码
builder.CreateFile("docx")!varoDocuments=api.GetDocumentvarolements=ODocument.GetEplement0Var OGs1 = Api.CreateGradientStopVar OGS2 = Api.CreateGradient StopVaroFinll=Api.CreateLinearGradientFillvarostroke=api.CreatestrokevaroDrawing1=api.CreateShapeoParagraph.AddDrawing(oDrawing1)!Var ODrawing2 = Api.CreateShapeoParagraph.AddDrawing(oDrawing2)!var adrawings =oledge.getAllShapesi.CreateSolidFillaDrawings[1].Fill(oFill)!builder.SaveFile("docx", "GetAllShapes.docx")!builder.CloseFile();

结果文档