HTML Bağlantısı Hedef Türünü Değiştirme

Contents
[ ]

Aşağıdaki kod, HtmlSaveOptions.LinkTargetType özelliğinin kullanımını gösterir. Bağlantı hedef türünü varsayılan olarak parent olarak değiştirir.

// For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-.NET
// The path to the documents directory.
string dataDir = RunExamples.GetDataDir(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
string inputPath = dataDir + "Sample1.xlsx";
string outputPath = dataDir + "Output.out.html";
Workbook workbook = new Workbook(dataDir + "Sample1.xlsx");
HtmlSaveOptions opts = new HtmlSaveOptions();
opts.LinkTargetType = HtmlLinkTargetType.Self;
workbook.Save(outputPath, opts);
Console.WriteLine("File saved: {0}", outputPath);