
## CommandButtonActiveXControl class

Represents a command button.

## Properties

| Name | Type | Description |
| --- | --- | --- |
| [Type](#type) | Number | Gets the type of the ActiveX control. The value of the property is ControlType integer constant. |
| [Caption](#caption) | String | Gets and set the descriptive text that appears on a control. |
| [PicturePosition](#pictureposition) | Number | Gets and set the location of the control's picture relative to its caption. The value of the property is ControlPictureP |
| [Picture](#picture) | byte[] | Gets and sets the data of the picture. |
| [Accelerator](#accelerator) | char | Gets and sets the accelerator key for the control. |
| [TakeFocusOnClick](#takefocusonclick) | boolean | Indicates whether the control takes the focus when clicked. |
| [IsWordWrapped](#iswordwrapped) | boolean | Indicates whether the contents of the control automatically wrap at the end of a line. |
| [IsEnabled](#isenabled) | boolean | Indicates whether the control can receive the focus and respond to user-generated events. |
| [IsLocked](#islocked) | boolean | Indicates whether data in the control is locked for editing. |
| [IsTransparent](#istransparent) | boolean | Indicates whether the control is transparent. |
| [IsAutoSize](#isautosize) | boolean | Indicates whether the control will automatically resize to display its entire contents. |
| [IMEMode](#imemode) | Number | Gets and sets the default run-time mode of the Input Method Editor for the control as it receives focus. The value of th |
| [Font](#font) | Font | Represents the font of the control. |
| [TextAlign](#textalign) | Number | Represents how to align the text used by the control. The value of the property is TextAlignmentType integer constant. |
| [Data](#data) | byte[] | Gets and sets the binary data of the control. |
| [Workbook](#workbook) | Workbook | Gets the Workbook object. |
| [Width](#width) | Number | Gets and sets the width of the control in unit of points. |
| [Height](#height) | Number | Gets and sets the height of the control in unit of points. |
| [MouseIcon](#mouseicon) | byte[] | Gets and sets a custom icon to display as the mouse pointer for the control. |
| [MousePointer](#mousepointer) | Number | Gets and sets the type of icon displayed as the mouse pointer for the control. The value of the property is ControlMouse |
| [ForeOleColor](#foreolecolor) | Number | Gets and sets the ole color of the foreground. Not applies to Image control. |
| [BackOleColor](#backolecolor) | Number | Gets and sets the ole color of the background. |
| [IsVisible](#isvisible) | boolean | Indicates whether this control is visible. |
| [Shadow](#shadow) | boolean | Indicates whether to show a shadow. |
| [LinkedCell](#linkedcell) | String | Gets and sets the linked cell. |
| [ListFillRange](#listfillrange) | String | Gets and sets the list fill range. |

### CommandButtonActiveXControl.Type property {#type}

Gets the type of the ActiveX control. The value of the property is ControlType integer constant.

**Type:** Number

### CommandButtonActiveXControl.Caption property {#caption}

Gets and set the descriptive text that appears on a control.

**Type:** String

### CommandButtonActiveXControl.PicturePosition property {#pictureposition}

Gets and set the location of the control's picture relative to its caption. The value of the property is ControlPicturePositionType integer constant.

**Type:** Number

### CommandButtonActiveXControl.Picture property {#picture}

Gets and sets the data of the picture.

**Type:** byte[]

### CommandButtonActiveXControl.Accelerator property {#accelerator}

Gets and sets the accelerator key for the control.

**Type:** char

### CommandButtonActiveXControl.TakeFocusOnClick property {#takefocusonclick}

Indicates whether the control takes the focus when clicked.

**Type:** boolean

### CommandButtonActiveXControl.IsWordWrapped property {#iswordwrapped}

Indicates whether the contents of the control automatically wrap at the end of a line.

**Type:** boolean

### CommandButtonActiveXControl.IsEnabled property {#isenabled}

Indicates whether the control can receive the focus and respond to user-generated events.

**Type:** boolean

### CommandButtonActiveXControl.IsLocked property {#islocked}

Indicates whether data in the control is locked for editing.

**Type:** boolean

### CommandButtonActiveXControl.IsTransparent property {#istransparent}

Indicates whether the control is transparent.

**Type:** boolean

### CommandButtonActiveXControl.IsAutoSize property {#isautosize}

Indicates whether the control will automatically resize to display its entire contents.

**Type:** boolean

### CommandButtonActiveXControl.IMEMode property {#imemode}

Gets and sets the default run-time mode of the Input Method Editor for the control as it receives focus. The value of the property is InputMethodEditorMode integer constant.

**Type:** Number

### CommandButtonActiveXControl.Font property {#font}

Represents the font of the control.

**Type:** Font

### CommandButtonActiveXControl.TextAlign property {#textalign}

Represents how to align the text used by the control. The value of the property is TextAlignmentType integer constant.

**Type:** Number

### CommandButtonActiveXControl.Data property {#data}

Gets and sets the binary data of the control.

**Type:** byte[]

### CommandButtonActiveXControl.Workbook property {#workbook}

Gets the Workbook object.

**Type:** Workbook

### CommandButtonActiveXControl.Width property {#width}

Gets and sets the width of the control in unit of points.

**Type:** Number

### CommandButtonActiveXControl.Height property {#height}

Gets and sets the height of the control in unit of points.

**Type:** Number

### CommandButtonActiveXControl.MouseIcon property {#mouseicon}

Gets and sets a custom icon to display as the mouse pointer for the control.

**Type:** byte[]

### CommandButtonActiveXControl.MousePointer property {#mousepointer}

Gets and sets the type of icon displayed as the mouse pointer for the control. The value of the property is ControlMousePointerType integer constant.

**Type:** Number

### CommandButtonActiveXControl.ForeOleColor property {#foreolecolor}

Gets and sets the ole color of the foreground. Not applies to Image control.

**Type:** Number

### CommandButtonActiveXControl.BackOleColor property {#backolecolor}

Gets and sets the ole color of the background.

**Type:** Number

### CommandButtonActiveXControl.IsVisible property {#isvisible}

Indicates whether this control is visible.

**Type:** boolean

### CommandButtonActiveXControl.Shadow property {#shadow}

Indicates whether to show a shadow.

**Type:** boolean

### CommandButtonActiveXControl.LinkedCell property {#linkedcell}

Gets and sets the linked cell.

**Type:** String

### CommandButtonActiveXControl.ListFillRange property {#listfillrange}

Gets and sets the list fill range.

**Type:** String
