GoDiagram Win Reference
OnLayerChanged Method (GoObject)

This GoLayer value is the old value of Layer. The value will be null if the object did not belong to a layer but is being added to one.
This GoLayer value is the new value of Layer. The value will be null if the object is being removed from a layer.
This is the object that is being inserted or removed from a layer.
Called when this object's layer is changed.
Syntax
'Declaration
 
Protected Overridable Sub OnLayerChanged( _
   ByVal oldlayer As GoLayer, _
   ByVal newlayer As GoLayer, _
   ByVal mainObj As GoObject _
) 
protected virtual void OnLayerChanged( 
   GoLayer oldlayer,
   GoLayer newlayer,
   GoObject mainObj
)

Parameters

oldlayer
This GoLayer value is the old value of Layer. The value will be null if the object did not belong to a layer but is being added to one.
newlayer
This GoLayer value is the new value of Layer. The value will be null if the object is being removed from a layer.
mainObj
This is the object that is being inserted or removed from a layer.
Remarks
When this object is being removed from its layer, this method is called before the actual value of Layer is set to null. Otherwise this method is called after the layer has been changed. Both oldlayer and newlayer can be non-null when the object is being moved from one layer to another. Unlike GoDocument.Changed events, this method will be called even when this object is not part of a document, or when SuspendsUpdates is true. However, this method is not called upon undo or redo of a change of layer. By default this method does nothing. Any implementation of this method should not cause a change in layers.
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

GoObject Class
GoObject Members

 

 


© 2015. Northwoods Software Corporation. All Rights Reserved.

Send Feedback