Aspose::Cells::Drawing::ShapeCollection::AddCheckBox method

ShapeCollection::AddCheckBox method

Adds a checkbox to the worksheet.

CheckBox Aspose::Cells::Drawing::ShapeCollection::AddCheckBox(int32_t upperLeftRow, int32_t top, int32_t upperLeftColumn, int32_t left, int32_t height, int32_t width)
ParameterTypeDescription
upperLeftRowint32_tUpper left row index.
topint32_tRepresents the vertical offset of checkbox from its top row, in unit of pixel.
upperLeftColumnint32_tUpper left column index.
leftint32_tRepresents the horizontal offset of textbox from its left column, in unit of pixel.
heightint32_tHeight of textbox, in unit of pixel.
widthint32_tWidth of textbox, in unit of pixel.

ReturnValue

The new CheckBox object index.

Examples

    //add a CheckBox
CheckBox checkBox = shapes.AddCheckBox(1, 0, 1, 0, 100, 50);

See Also