GoDigram for .NET Framework and .NET Core
Northwoods.Go Namespace / GoLayerCollection Class / InsertDocumentLayerBefore Method
A layer already in this view's collection of layers.
A layer owned by this view's document.
In This Topic
    InsertDocumentLayerBefore Method
    In This Topic
    Add a reference to a document layer into this view's collection of layers.
    Syntax
    public void InsertDocumentLayerBefore( 
       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
    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