asposecells.api

Class CommandButtonActiveXControl

Represents a command button.

Property Getters/Setters Summary
methodgetAccelerator()
method
           Gets and sets the accelerator key for the control.
methodgetBackOleColor()
method
           Gets and sets the ole color of the background.
methodgetCaption()
method
setCaption(value)
           Gets and set the descriptive text that appears on a control.
methodgetData()
Gets and sets the binary data of the control.
methodgetFont()
Represents the font of the control.
methodgetForeOleColor()
method
           Gets and sets the ole color of the foreground.
methodgetHeight()
method
setHeight(value)
           Gets and sets the height of the control in unit of points.
methodgetIMEMode()
method
setIMEMode(value)
           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.
methodisAutoSize()
method
           Indicates whether the control will automatically resize to display its entire contents.
methodisEnabled()
method
setEnabled(value)
           Indicates whether the control can receive the focus and respond to user-generated events.
methodisLocked()
method
setLocked(value)
           Indicates whether data in the control is locked for editing.
methodisTransparent()
method
           Indicates whether the control is transparent.
methodisVisible()
method
setVisible(value)
           Indicates whether this control is visible.
methodisWordWrapped()
method
           Indicates whether the contents of the control automatically wrap at the end of a line.
methodgetLinkedCell()
method
           Gets and sets the linked cell.
methodgetListFillRange()
method
           Gets and sets the list fill range.
methodgetMouseIcon()
method
           Gets and sets a custom icon to display as the mouse pointer for the control.
methodgetMousePointer()
method
           Gets and sets the type of icon displayed as the mouse pointer for the control. The value of the property is ControlMousePointerType integer constant.
methodgetPicture()
method
setPicture(value)
           Gets and sets the data of the picture.
methodgetPicturePosition()
method
           Gets and set the location of the control's picture relative to its caption. The value of the property is ControlPicturePositionType integer constant.
methodgetShadow()
method
setShadow(value)
           Indicates whether to show a shadow.
methodgetTakeFocusOnClick()
method
           Indicates whether the control takes the focus when clicked.
methodgetTextAlign()
method
           Represents how to align the text used by the control. The value of the property is TextAlignmentType integer constant.
methodgetType()
Gets the type of the ActiveX control. The value of the property is ControlType integer constant.
methodgetWidth()
method
setWidth(value)
           Gets and sets the width of the control in unit of points.
methodgetWorkbook()
Gets the Workbook object.
 

    • Property Getters/Setters Detail

      • getType : int 

        int getType()
        
        Gets the type of the ActiveX control. The value of the property is ControlType integer constant.
      • getCaption/setCaption : String 

        String getCaption() / setCaption(value)
        
        Gets and set the descriptive text that appears on a control.
      • getPicturePosition/setPicturePosition : int 

        int getPicturePosition() / setPicturePosition(value)
        
        Gets and set the location of the control's picture relative to its caption. The value of the property is ControlPicturePositionType integer constant.
      • getPicture/setPicture : byte[] 

        byte[] getPicture() / setPicture(value)
        
        Gets and sets the data of the picture.
      • getAccelerator/setAccelerator : char 

        char getAccelerator() / setAccelerator(value)
        
        Gets and sets the accelerator key for the control.
      • getTakeFocusOnClick/setTakeFocusOnClick : boolean 

        boolean getTakeFocusOnClick() / setTakeFocusOnClick(value)
        
        Indicates whether the control takes the focus when clicked.
      • isWordWrapped/setWordWrapped : boolean 

        boolean isWordWrapped() / setWordWrapped(value)
        
        Indicates whether the contents of the control automatically wrap at the end of a line.
      • isEnabled/setEnabled : boolean 

        boolean isEnabled() / setEnabled(value)
        
        Indicates whether the control can receive the focus and respond to user-generated events.
      • isLocked/setLocked : boolean 

        boolean isLocked() / setLocked(value)
        
        Indicates whether data in the control is locked for editing.
      • isTransparent/setTransparent : boolean 

        boolean isTransparent() / setTransparent(value)
        
        Indicates whether the control is transparent.
      • isAutoSize/setAutoSize : boolean 

        boolean isAutoSize() / setAutoSize(value)
        
        Indicates whether the control will automatically resize to display its entire contents.
      • getIMEMode/setIMEMode : int 

        int getIMEMode() / setIMEMode(value)
        
        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.
      • getFont : Font 

        Font getFont()
        
        Represents the font of the control.
      • getTextAlign/setTextAlign : int 

        int getTextAlign() / setTextAlign(value)
        
        Represents how to align the text used by the control. The value of the property is TextAlignmentType integer constant.
      • getData : byte[] 

        byte[] getData()
        
        Gets and sets the binary data of the control.
      • getWidth/setWidth : float 

        float getWidth() / setWidth(value)
        
        Gets and sets the width of the control in unit of points.
      • getHeight/setHeight : float 

        float getHeight() / setHeight(value)
        
        Gets and sets the height of the control in unit of points.
      • getMouseIcon/setMouseIcon : byte[] 

        byte[] getMouseIcon() / setMouseIcon(value)
        
        Gets and sets a custom icon to display as the mouse pointer for the control.
      • getMousePointer/setMousePointer : int 

        int getMousePointer() / setMousePointer(value)
        
        Gets and sets the type of icon displayed as the mouse pointer for the control. The value of the property is ControlMousePointerType integer constant.
      • getForeOleColor/setForeOleColor : int 

        int getForeOleColor() / setForeOleColor(value)
        
        Gets and sets the ole color of the foreground. Not applies to Image control.
      • getBackOleColor/setBackOleColor : int 

        int getBackOleColor() / setBackOleColor(value)
        
        Gets and sets the ole color of the background.
      • isVisible/setVisible : boolean 

        boolean isVisible() / setVisible(value)
        
        Indicates whether this control is visible.
      • getShadow/setShadow : boolean 

        boolean getShadow() / setShadow(value)
        
        Indicates whether to show a shadow.
      • getLinkedCell/setLinkedCell : String 

        String getLinkedCell() / setLinkedCell(value)
        
        Gets and sets the linked cell.
      • getListFillRange/setListFillRange : String 

        String getListFillRange() / setListFillRange(value)
        
        Gets and sets the list fill range.