Aspose::Words::Drawing::ShapeBase::get_ScreenTip method

ShapeBase::get_ScreenTip method

Defines the text displayed when the mouse pointer moves over the shape.

System::String Aspose::Words::Drawing::ShapeBase::get_ScreenTip()

Remarks

The default value is an empty string.

Examples

Shows how to insert a shape which contains an image, and is also a hyperlink.

auto doc = System::MakeObject<Aspose::Words::Document>();
auto builder = System::MakeObject<Aspose::Words::DocumentBuilder>(doc);

System::SharedPtr<Aspose::Words::Drawing::Shape> shape = builder->InsertImage(get_ImageDir() + u"Logo.jpg");
shape->set_HRef(u"https://forum.aspose.com/");
shape->set_Target(u"New Window");
shape->set_ScreenTip(u"Aspose.Words Support Forums");

// Ctrl + left-clicking the shape in Microsoft Word will open a new web browser window
// and take us to the hyperlink in the "HRef" property.
doc->Save(get_ArtifactsDir() + u"Image.InsertImageWithHyperlink.docx");

See Also