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

  1. builder.CreateFile("docx");
  2. oDocument = Api.GetDocument();
  3. oParagraph = oDocument.GetElement(0);
  4. oFill = Api.CreateBlipFill("https://api.onlyoffice.com/content/img/docbuilder/examples/icon_DocumentEditors.png", "tile");
  5. oStroke = Api.CreateStroke(0, Api.CreateNoFill());
  6. oDrawing = Api.CreateShape("star10", 5930900, 595605, oFill, oStroke);
  7. oParagraph.AddDrawing(oDrawing);
  8. builder.SaveFile("docx", "CreateBlipFill.docx");
  9. builder.CloseFile();




CreateBullet

CreateBullet(sSymbol) → { ApiBullet }
使用sBullet参数指定的字符或符号为段落创建项目符号。

Parameters:

Name Type Description
sSymbol string 用于创建段落项目符号的字符或符号。

Returns:

Type ApiBullet