InsertForms2OleControl
DocumentBuilder.InsertForms2OleControl method
InsertsForms2OleControl
objet dans la position actuelle.
public Shape InsertForms2OleControl(Forms2OleControl forms2OleControl)
Return_Value
Shape
objet qui contient passéForms2OleControl
Exemples
Montre comment insérer un contrôle ActiveX.
DocumentBuilder builder = new DocumentBuilder();
CommandButtonControl button1 = new CommandButtonControl();
Shape shape = builder.InsertForms2OleControl(button1);
Assert.AreEqual(Forms2OleControlType.CommandButton, button1.Type);
Voir également
- property OleFormat
- property OleControl
- class Shape
- class Forms2OleControl
- class DocumentBuilder
- espace de noms Aspose.Words
- Assemblée Aspose.Words