GoDiagram Web Reference
GeneratesPortsAsChildElements Property

Gets or sets whether this transformer writes child elements representing ports (IGoPort), if this transformer is operating on an IGoNode.
Syntax
'Declaration
 
Public Property GeneratesPortsAsChildElements As Boolean
public bool GeneratesPortsAsChildElements {get; set;}

Property Value

The initial value is false.
Remarks

Setting this property to true will cause GenerateDefinitions to enumerate all of the IGoPorts for the given IGoNode (assuming the argument object indeed implements IGoNode) and call GoXmlWriter.DefineObject on each port. A true value will also cause GenerateBody to enumerate all the ports and call GoXmlWriter.GenerateObject on each one.

Note that this property only affects generation. Typically you will also want to set BodyConsumesChildElements to true and override ConsumeChild to add the port to be a child of this parent node.

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

GoXmlTransformer Class
GoXmlTransformer Members

 

 


© 2013. Northwoods Software Corporation. All Rights Reserved.

Send Feedback