Aspose::Cells::Drawing::ActiveXControls::ToggleButtonActiveXControl::SetPicture method

ToggleButtonActiveXControl::SetPicture method

Gets and sets the data of the picture.

void Aspose::Cells::Drawing::ActiveXControls::ToggleButtonActiveXControl::SetPicture(const Vector<uint8_t> &value)

Examples

Vector<uint8_t> data{ 0 };//Read an image to 'data'.e.g "image.png"(Note: You need to read the data into this variable.)
if (!activeXControl.GetPicture().IsNull())
{
    activeXControl.SetPicture(data);
}

See Also