Get Started
Documentation

Select

Select()

Selects the graphic object.

Example

Copy code
builder.CreateFile("docx");
oDocument = Api.GetDocument();
oParagraph = oDocument.GetElement(0);
oFill = Api.CreateSolidFill(Api.CreateRGBColor(104, 155, 104));
oStroke = Api.CreateStroke(0, Api.CreateNoFill());
oDrawing = Api.CreateShape("rect", 3212465, 963295, oFill, oStroke);
oParagraph.AddDrawing(oDrawing);
oDrawing.InsertParagraph("The Select property is applied to the drawing object", "before", false);
oDrawing.Select();
builder.SaveFile("docx", "Select.docx");
builder.CloseFile();