GetHRef target

I have override the GoSvgWriter.GetHref() function to enable the SVG hyperlink feature. How can I control the target of where the target should appear? I would like a new window to popup with the content, e.g., target="_blank" in tag.

In your override of GoSvgWriter…



public override void WriteStartElement(string name) {

base.WriteStartElement(name);

if (name == “a”) {

WriteAttrVal(“target”, “_blank”);

}

}

My previous answer is kind of the big hammer solution.

You could also write your own GoSvgGenerator class and overriding Generate Element. Demo1 / NodeLinkDemo has several examples.

Thanks. That’s good enough.