add_active_x_control method

add_active_x_control

Creates an Activex Control.

Returns

def add_active_x_control(self, type, top_row, top, left_column, left, width, height):
    ...
ParameterTypeDescription
typeaspose.cells.drawing.activexcontrols.ControlTypeThe type of the control.
top_rowintUpper left row index.
topintRepresents the vertical offset of Shape from its left row, in unit of pixel.
left_columnintUpper left column index.
leftintRepresents the horizontal offset of Shape from its left column, in unit of pixel.
widthintRepresents the width of Shape, in unit of pixel.
heightintRepresents the height of Shape, in unit of pixel.

Example

from aspose.cells.drawing.activexcontrols import ControlType

# add an ActiveX control
activeXControl = shapes.add_active_x_control(ControlType.CHECK_BOX, 1, 0, 1, 0, 100, 50)

See Also