GoDigram for .NET Framework and .NET Core
Northwoods.Go Namespace / GoObject Class / Location Property
In This Topic
    Location Property (GoObject)
    In This Topic
    Gets or sets this object's natural position.
    Syntax
    [Category("Bounds")]
    [TypeConverter(Northwoods.Go.GoPointFConverter)]
    [Description("The natural location for this object, perhaps different from Position.")]
    public virtual PointF Location {get; set;}

    Property Value

    The PointF value is in document coordinates.
    Remarks
    This property is normally the object's TopLeft position. However, it is common for certain kinds of objects to assume that the assigned location actually refers to a different spot of the bounding rectangle. For example, for GoText objects, the text's alignment property determines the Location. For groups, one of the child objects might be the natural thing to be positioned as the user would see it. For example, the icon of a node might provide the Location for the node as a whole. If you override this property, you should also override SetSizeKeepingLocation.
    See Also