ShapeCollection.AddActiveXControl

ShapeCollection.AddActiveXControl method

Creates an Activex Control.

public Shape AddActiveXControl(ControlType type, int topRow, int top, int leftColumn, int left, 
    int width, int height)
ParameterTypeDescription
typeControlTypeThe type of the control.
topRowInt32Upper left row index.
topInt32Represents the vertical offset of Shape from its left row, in unit of pixel.
leftColumnInt32Upper left column index.
leftInt32Represents the horizontal offset of Shape from its left column, in unit of pixel.
heightInt32Represents the height of Shape, in unit of pixel.
widthInt32Represents the width of Shape, in unit of pixel.

Examples


[C#]
//add an ActiveX control
Shape activeXControl = shapes.AddActiveXControl(Aspose.Cells.Drawing.ActiveXControls.ControlType.CheckBox, 1, 0, 1, 0, 100, 50);

See Also