InsertInContentControl
Wraps the graphic object with a rich text content control.
Inherited from ApiDrawing.InsertInContentControl.
Example
Wrap the graphic object with a rich text content control in a document.
// How to add the drawing to the paragraph in a document.
// Create a rectangle and then insert it to the another content control in a document.
let doc = Api.GetDocument();
let paragraph = doc.GetElement(0);
paragraph.AddText("This graphic object was wrapped in content control");
let fill = Api.CreateSolidFill(Api.RGB(255, 111, 61));
let stroke = Api.CreateStroke(0, Api.CreateNoFill());
let drawing = Api.CreateShape("rect", 3212465, 963295, fill, stroke);
paragraph.AddDrawing(drawing);
drawing.InsertInContentControl(1);