GoDigram for .NET Framework and .NET Core
Northwoods.Go Namespace / GoLayerCollection Class / InsertDocumentLayerAfter Method
A layer already in this view's collection of layers.
A layer owned by this view's document.
In This Topic
    InsertDocumentLayerAfter Method
    In This Topic
    Add a reference to a document layer into this view's collection of layers.
    Syntax
    public void InsertDocumentLayerAfter( 
       GoLayer dest,
       GoLayer doclayer
    )

    Parameters

    dest
    A layer already in this view's collection of layers.
    doclayer
    A layer owned by this view's document.
    Remarks
    By allowing a view's collection of layers to include both view layers owned by the view and document layers owned by the view's document, we permit each view on a document to display a different set of document layers, perhaps in different orders. This functionality is called by GoView.InitializeLayersFromDocument. It is an error if this collection does not belong to a GoView, or if doclayer does not belong to this view's GoView.Document. The document layer continues to be owned by the document; the view just acquires a shared reference to that layer. The IGoLayerCollectionContainer.RaiseChanged call gets a InsertedLayer hint.
    See Also