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