InsertForms2OleControl
DocumentBuilder.InsertForms2OleControl method
ВставкиForms2OleControl
объект в текущую позицию.
public Shape InsertForms2OleControl(Forms2OleControl forms2OleControl)
Возвращаемое значение
Shape
объект, содержащий переданныйForms2OleControl
Примеры
Показывает, как вставить элемент управления ActiveX.
DocumentBuilder builder = new DocumentBuilder();
CommandButtonControl button1 = new CommandButtonControl();
Shape shape = builder.InsertForms2OleControl(button1);
Assert.AreEqual(Forms2OleControlType.CommandButton, button1.Type);
Смотрите также
- property OleFormat
- property OleControl
- class Shape
- class Forms2OleControl
- class DocumentBuilder
- пространство имен Aspose.Words
- сборка Aspose.Words