Type

CommandButtonControl.Type property

Gets type of Forms 2.0 control.

public override Forms2OleControlType Type { get; }

Examples

Shows how to insert ActiveX control.

DocumentBuilder builder = new DocumentBuilder();

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

See Also