Type

CommandButtonControl.Type property

يحصل على نوع عنصر التحكم في النماذج 2.0.

public override Forms2OleControlType Type { get; }

أمثلة

يوضح كيفية إدراج عنصر التحكم ActiveX.

DocumentBuilder builder = new DocumentBuilder();

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

أنظر أيضا