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
public string Target { get; set; }

Property Value

Type: String

The default value is an empty string.

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 = "";
shape.Target = "New Window";
shape.ScreenTip = "Aspose.Words Support Forums";

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