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.5
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.
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);

Shape shape = builder.InsertImage(ImageDir + "Windows MetaFile.wmf");
shape.HRef = "https://forum.aspose.com/";
shape.Target = "New Window";
shape.ScreenTip = "Aspose.Words Support Forums";

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