GoDigram for .NET Framework and .NET Core
Northwoods.Go.Xml Namespace / GoXmlTransformer Class / GeneratesPortsAsChildElements Property
In This Topic
    GeneratesPortsAsChildElements Property
    In This Topic
    Gets or sets whether this transformer writes child elements representing ports (IGoPort), if this transformer is operating on an IGoNode.
    Syntax
    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.

    See Also