GoDiagram Web Reference
InsertDocumentLayerAfter Method

A layer already in this view's collection of layers.
A layer owned by this view's document.
Add a reference to a document layer into this view's collection of layers.
Syntax
'Declaration
 
Public Sub InsertDocumentLayerAfter( _
   ByVal dest As GoLayer, _
   ByVal doclayer As GoLayer _
) 
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.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

GoLayerCollection Class
GoLayerCollection Members
InsertDocumentLayerBefore Method
CreateNewLayerAfter Method
Remove Method

 

 


© 2013. Northwoods Software Corporation. All Rights Reserved.

Send Feedback