InsertForms2OleControl

DocumentBuilder.InsertForms2OleControl method

InsatserForms2OleControl objekt till aktuell position.

public Shape InsertForms2OleControl(Forms2OleControl forms2OleControl)

Returvärde

Shape objekt som innehåller godkäntForms2OleControl

Exempel

Visar hur man infogar ActiveX-kontroll.

DocumentBuilder builder = new DocumentBuilder();

CommandButtonControl button1 = new CommandButtonControl();
Shape shape = builder.InsertForms2OleControl(button1);
Assert.AreEqual(Forms2OleControlType.CommandButton, button1.Type);

Se även