GoDiagram Web Reference
ConsumeChildAttributes Method

the GoXmlBindingTransformer being used to read the child object
This is called on the parent's GoXmlBindingTransformer for each child object, when HandlesChildren and HandlesChildAttributes are true, to allow a parent object to read attributes of each child element.
Syntax
'Declaration
 
Protected Overridable Sub ConsumeChildAttributes( _
   ByVal parent As Object, _
   ByVal child As Object, _
   ByVal childtransformer As GoXmlBindingTransformer _
) 
protected virtual void ConsumeChildAttributes( 
   object parent,
   object child,
   GoXmlBindingTransformer childtransformer
)

Parameters

parent
child
childtransformer
the GoXmlBindingTransformer being used to read the child object
Remarks

For example, this can be used to reconstruct a dictionary mapping key values to child objects when the key values are attributes on each child element. This could also be used to store a "value" attribute value on each child object, assuming the child object itself is the key in the dictionary.

By default this does nothing, unless HandlesSubGraphCollapsedChildren and HandlesChildAttributes are both true and this parent is a Northwoods.GoWeb.GoSubGraph and the child is a Northwoods.GoWeb.GoObject. If those conditions are true, this will read in saved bounds or saved path information for each child object if the subgraph is not expanded.

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

GoXmlBindingTransformer Class
GoXmlBindingTransformer Members
GenerateChildAttributes Method

 

 


© 2013. Northwoods Software Corporation. All Rights Reserved.

Send Feedback