Aspose::Cells::Drawing::ShapeCollection::AddActiveXControl method

ShapeCollection::AddActiveXControl method

Creates an Activex Control.

Shape Aspose::Cells::Drawing::ShapeCollection::AddActiveXControl(ControlType type, int32_t topRow, int32_t top, int32_t leftColumn, int32_t left, int32_t width, int32_t height)
ParameterTypeDescription
typeControlTypeThe type of the control.
topRowint32_tUpper left row index.
topint32_tRepresents the vertical offset of Shape from its left row, in unit of pixel.
leftColumnint32_tUpper left column index.
leftint32_tRepresents the horizontal offset of Shape from its left column, in unit of pixel.
heightint32_tRepresents the height of Shape, in unit of pixel.
widthint32_tRepresents the width of Shape, in unit of pixel.

ReturnValue

Examples

    //add an ActiveX control
Shape activeXControl = shapes.AddActiveXControl(ControlType::CheckBox, 1, 0, 1, 0, 100, 50);

See Also