CreateBlipFill
CreateBlipFill(sImageUrl, sBlipFillType) → { ApiFill }
创建一个填充,该填充允许使用选定的图像作为对象背景来填充对象。
Parameters:
| Name | Type | Description |
|---|---|---|
| sImageUrl | string | The path to the image used for the blip fill (currently only internet URL or Base64 encoded images are supported). |
| sBlipFillType | BlipFillType | The type of the fill used for the blip fill (tile or stretch). |
Returns:
Type ApiFill
Example
builder.CreateFile("docx");oDocument = Api.GetDocument();oParagraph = oDocument.GetElement(0);oFill = Api.CreateBlipFill("https://api.onlyoffice.com/content/img/docbuilder/examples/icon_DocumentEditors.png", "tile");oStroke = Api.CreateStroke(0, Api.CreateNoFill());oDrawing = Api.CreateShape("star10", 5930900, 595605, oFill, oStroke);oParagraph.AddDrawing(oDrawing);builder.SaveFile("docx", "CreateBlipFill.docx");builder.CloseFile();
CreateBullet
CreateBullet(sSymbol) → { ApiBullet }
使用sBullet参数指定的字符或符号为段落创建项目符号。
Parameters:
| Name | Type | Description |
|---|---|---|
| sSymbol | string | 用于创建段落项目符号的字符或符号。 |
Returns:
Type ApiBullet
