Target

ShapeBase.Target property

Ottiene o imposta il frame di destinazione per il collegamento ipertestuale della forma.

public string Target { get; set; }

Osservazioni

Il valore predefinito è una stringa vuota.

Esempi

Mostra come inserire una forma che contiene un’immagine e che è anche un collegamento ipertestuale.

Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);

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

// Facendo clic con il tasto sinistro del mouse sulla forma in Microsoft Word si aprirà una nuova finestra del browser Web
// e ci porta al collegamento ipertestuale nella proprietà "HRef".
doc.Save(ArtifactsDir + "Image.InsertImageWithHyperlink.docx");

Guarda anche