GoDigram for .NET Framework and .NET Core
Northwoods.Go Namespace / GoObject Class / Parent Property
In This Topic
    Parent Property (GoObject)
    In This Topic
    Gets the parent group for this object.
    Syntax
    [Category("Ownership")]
    [Description("The parent GoGroup for this object, or null if top-level.")]
    public GoGroup Parent {get;}
    Remarks
    If this object belongs to a GoGroup, we return that group. Otherwise we return null. You cannot set this property--call GoGroup.Add instead. This property does not depend on the object belonging to a layer. CopyObject will not set this property directly, nor will it automatically add the copied object to some group to set this property indirectly. The caller of CopyObject is responsible for deciding if and where to add the newly copied object to a GoGroup.
    See Also