GoDigram for .NET Framework and .NET Core
Northwoods.Go Namespace / GoView Class / Layers Property
In This Topic
    Layers Property (GoView)
    In This Topic
    Gets the collection of layers that this view displays.
    Syntax
    [Browsable(false)]
    public GoLayerCollection Layers {get;}
    Remarks

    This value is the list of layers that this view displays. The view will paint the layers in order. Picking objects at a given point searches this same list of layers, but in reverse order.

    A view's collection of layers includes both view layers that it owns and document layers that it refers to. It is normal for the view to have references to all of the document's layers, in the same order as the document's layers, with a view layer on top for selection handles and the like. However, each view can have its own set of layers to display. The InitializeLayersFromDocument method is responsible for setting up the GoLayers when the view is assigned a document. It can use methods such as GoLayerCollection.CreateNewLayerAfter to create view layers or GoLayerCollection.InsertDocumentLayerAfter to insert references to document layers.

    See Also