GoDiagram Win Reference
InsertDocumentLayerBefore 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 InsertDocumentLayerBefore( _
   ByVal dest As GoLayer, _
   ByVal doclayer As GoLayer _
) 
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.
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
InsertDocumentLayerAfter Method
CreateNewLayerBefore Method
Remove Method

 

 


© 2015. Northwoods Software Corporation. All Rights Reserved.

Send Feedback