GoDigram for .NET Framework and .NET Core
Northwoods.Go Namespace / GoBasicNode Class / Shape Property
In This Topic
    Shape Property (GoBasicNode)
    In This Topic
    Gets or sets the GoShape, the background for this node.
    Syntax
    [TypeConverter(System.ComponentModel.ExpandableObjectConverter)]
    public virtual GoShape Shape {get; set;}

    Property Value

    The new value may be null, to simply remove the background shape.
    Remarks
    Instead of setting the shape after creating a node, you may find it easier to override the CreateShape method. The new shape will have its Center location, Selectable, Resizable, Reshapable, ResizesRealtime, and Shadowed properties copied from the old shape. Setting this property will also set the Port's PortObject to be the new shape.
    See Also