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.That(button1.Type, Is.EqualTo(Forms2OleControlType.CommandButton));

See Also