GoDigram for .NET Framework and .NET Core
Northwoods.Go Namespace / GoGroup Class / Item Property / Item(String) Property
In This Topic
    Item(String) Property
    In This Topic
    For convenience, you can access named child objects using an indexer.
    Syntax
    public GoObject Item( 
       string name
    ) {get; set;}

    Parameters

    name
    Remarks

    The getter just calls FindChild. The setter just calls AddChildName.

    For example:

    
                GoBasicNode n = ...;
                System.Diagnostics.Debug.Assert(n["Label"] == n.Label);
                
    Remember that you can also refer to a particular child object by its position (integer index) in this group, since GoGroup implements IList.

    See Also