GoDigram for .NET Framework and .NET Core
Northwoods.Go Namespace / GoObject Class / Layer Property
In This Topic
    Layer Property (GoObject)
    In This Topic
    Gets the layer to which this object belongs.
    Syntax
    [Category("Ownership")]
    [Description("The GoLayer to which this object belongs.")]
    public GoLayer Layer {get;}
    Remarks
    If this object is not part of any layer, either directly as a top-level object, or as part of a group, then this property value will be null. You cannot set this property--call GoLayer.Add instead. CopyObject will not set this property directly, nor will it automatically add the copied object to some layer to set this property indirectly. The caller of CopyObject is responsible for deciding which GoLayer to add the newly copied object, if any.
    See Also