Type

CommandButtonControl.Type property

获取 Forms 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);

也可以看看