Aspose::Cells::Drawing::Shape::SetText method

Shape::SetText(const U16String&) method

Gets and sets the text of this shape.

void Aspose::Cells::Drawing::Shape::SetText(const U16String &value)

Examples

U16String val = u"This is a test.";
if (shape.GetText().IsNull())
    shape.SetText(val);

See Also

Shape::SetText(const char16_t*) method

Gets and sets the text of this shape.

void Aspose::Cells::Drawing::Shape::SetText(const char16_t *value)

Examples

if (shape.GetText().IsNull())
    shape.SetText(u"This is a test.");

See Also