Type

CommandButtonControl.Type property

Obtiene el tipo de control de Forms 2.0.

public override Forms2OleControlType Type { get; }

Ejemplos

Muestra cómo insertar un control ActiveX.

DocumentBuilder builder = new DocumentBuilder();

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

Ver también