CreatePatternFill

创建PaternFill-PaternType,BgColor,FgColorapiFill}

创建模式填充程序应用对象

参数:

名称 类型 描述性
sPaternType 模式类型

模式类型从可用模式类型中选择填充

BgColor apiuniColor

模式创建使用背景色

FgColor apiuniColor

前景颜色用于模式创建

返回时间 :

类型
apiFill

实例

拷贝代码
builder.CreateFile("docx")!varoDocuments=api.GetDocumentvarolements=ODocument.GetEplement0varoFinll=api.CreatePaternFinllvarostroke=api.CreatestrokevaroDrawing=api.CreateShapeoParagraph.AddDrawing(oDrawing)!builder.SaveFile("docx", "CreatePatternFill.docx")!builder.CloseFile();

结果文档