ShapeBaseTarget Property

Gets or sets the target frame for the shape hyperlink.

Namespace:  Aspose.Words.Drawing
Assembly:  Aspose.Words (in Aspose.Words.dll) Version: 20.3
Syntax
public string Target { get; set; }

Property Value

Type: String
Remarks

The default value is an empty string.

Examples
Shows how to insert an image with a hyperlink.
// This creates a builder and also an empty document inside the builder
DocumentBuilder builder = new DocumentBuilder();

Shape shape = builder.InsertImage(ImageDir + "Windows MetaFile.wmf");
shape.HRef = "http://www.aspose.com/Community/Forums/75/ShowForum.aspx";
shape.Target = "New Window";
shape.ScreenTip = "Aspose.Words Support Forums";

builder.Document.Save(ArtifactsDir + "Image.InsertImageWithHyperlink.doc");
See Also