CreatePatternFill

创建PaternFill-PaternType,BgColor,FgColorapiFill}

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

参数:

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

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

BgColor apiuniColor

模式创建使用背景色

FgColor apiuniColor

前景颜色用于模式创建

返回时间 :

类型
apiFill

实例

拷贝代码
builder.CreateFile("pptx")!varoPresentation=api.GetpresentationvaroSlide=oPresentation.getSlideByIndex0oSlide.RemoveAllObjects()!varoFinll=api.CreatePaternFinllvarostroke=api.CreatestrokeVar ODrawing = Api.CreateShapeoSlide.AddObject(oDrawing)!oDrawing.SetPosition(608400, 1267200)!builder.SaveFile("pptx", "CreatePatternFill.pptx")!builder.CloseFile();

结果文档