---
title: "Class CommandButtonActiveXControl"
url: "https://reference.aspose.com/diagram/net/aspose.diagram.activexcontrols/commandbuttonactivexcontrol/"
product: "Aspose.Diagram for .NET API Reference"
description: "Aspose.Diagram.ActiveXControls.CommandButtonActiveXControl class. Represents a command button"
---

## CommandButtonActiveXControl class

Represents a command button.

```csharp
public class CommandButtonActiveXControl : ActiveXControl
```

## Properties

| Name | Description |
| --- | --- |
| [Accelerator](../../aspose.diagram.activexcontrols/commandbuttonactivexcontrol/accelerator/) { get; set; } | Gets and sets the accelerator key for the control. |
| [BackOleColor](../../aspose.diagram.activexcontrols/activexcontrolbase/backolecolor/) { get; set; } | Gets and sets the ole color of the background. |
| [Caption](../../aspose.diagram.activexcontrols/commandbuttonactivexcontrol/caption/) { get; set; } | Gets and set the descriptive text that appears on a control. |
| override [Data](../../aspose.diagram.activexcontrols/activexcontrol/data/) { get; } | Gets and sets the binary data of the control. |
| virtual [ForeOleColor](../../aspose.diagram.activexcontrols/activexcontrolbase/foreolecolor/) { get; set; } | Gets and sets the ole color of the foreground. |
| virtual [Height](../../aspose.diagram.activexcontrols/activexcontrolbase/height/) { get; set; } | Gets and sets the height of the control in unit of points. |
| [IMEMode](../../aspose.diagram.activexcontrols/activexcontrol/imemode/) { get; set; } | Gets and sets the default run-time mode of the Input Method Editor for the control as it receives focus. |
| virtual [IsAutoSize](../../aspose.diagram.activexcontrols/activexcontrol/isautosize/) { get; set; } | Indicates whether the control will automatically resize to display its entire contents. |
| [IsEnabled](../../aspose.diagram.activexcontrols/activexcontrol/isenabled/) { get; set; } | Indicates whether the control can receive the focus and respond to user-generated events. |
| [IsLocked](../../aspose.diagram.activexcontrols/activexcontrol/islocked/) { get; set; } | Indicates whether data in the control is locked for editing. |
| [IsTransparent](../../aspose.diagram.activexcontrols/activexcontrol/istransparent/) { get; set; } | Indicates whether the control is transparent. |
| [IsWordWrapped](../../aspose.diagram.activexcontrols/commandbuttonactivexcontrol/iswordwrapped/) { get; set; } | Indicates whether the contents of the control automatically wrap at the end of a line. |
| [MouseIcon](../../aspose.diagram.activexcontrols/activexcontrolbase/mouseicon/) { get; set; } | Gets and sets a custom icon to display as the mouse pointer for the control. |
| [MousePointer](../../aspose.diagram.activexcontrols/activexcontrolbase/mousepointer/) { get; set; } | Gets and sets the type of icon displayed as the mouse pointer for the control. |
| [Picture](../../aspose.diagram.activexcontrols/commandbuttonactivexcontrol/picture/) { get; set; } | Gets and sets the data of the picture. |
| [PicturePosition](../../aspose.diagram.activexcontrols/commandbuttonactivexcontrol/pictureposition/) { get; set; } | Gets and set the location of the control's picture relative to its caption. |
| [TakeFocusOnClick](../../aspose.diagram.activexcontrols/commandbuttonactivexcontrol/takefocusonclick/) { get; set; } | Indicates whether the control takes the focus when clicked. |
| override [Type](../../aspose.diagram.activexcontrols/commandbuttonactivexcontrol/type/) { get; } | Gets the type of the ActiveX control. |
| virtual [Width](../../aspose.diagram.activexcontrols/activexcontrolbase/width/) { get; set; } | Gets and sets the width of the control in unit of point. |

### See Also

* class [ActiveXControl](../activexcontrol/)
* namespace [Aspose.Diagram.ActiveXControls](../../aspose.diagram.activexcontrols/)
* assembly [Aspose.Diagram](../../)


