Only one LinksLayer per GoDoc?

This may be obvious to the experts…

Is GoDocument.LinksLayer a property that can be set to any existing document layer? Or is there only one (unique) LinksLayer per GoDocument?

I want to manage the display of links by layer (as opposed to traversing the link collection). I could achieve this by virtually grouping links, but I’d prefer to associate links with layers.


Yes, the GoDocument.LinksLayer property can refer to any layer of that document.
In fact, by default, there is only one layer in the document, so LinksLayer is the same as DefaultLayer.
You’re free to have as many layers of links (or any other application-defined collection of GoObjects) as you like.