ShapeBaseTarget Property
Gets or sets the target frame for the shape hyperlink.

Namespace: Aspose.Words.Drawing
Assembly: Aspose.Words (in Aspose.Words.dll) Version: 19.12
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.
// This creates a builder and also an empty document inside the builder.
DocumentBuilder builder = new DocumentBuilder();

Shape shape = builder.InsertImage(MyDir + "Images/Hammer.wmf");
shape.HRef = "";
shape.Target = "New Window";
shape.ScreenTip = "Aspose.Words Support Forums";

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