InsertForms2OleControl

DocumentBuilder.InsertForms2OleControl method

InsercionesForms2OleControl objeto en la posición actual.

public Shape InsertForms2OleControl(Forms2OleControl forms2OleControl)

Valor_devuelto

Shape objeto que contiene lo pasadoForms2OleControl

Ejemplos

Muestra cómo insertar un control ActiveX.

DocumentBuilder builder = new DocumentBuilder();

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

Ver también