GoDigram for .NET Framework and .NET Core
Northwoods.Go Namespace / GoGrid Class / SnapCellSpot Property
In This Topic
    SnapCellSpot Property
    In This Topic
    Gets or sets the spot in the cell that is returned by FindNearestGridPoint.
    Syntax
    [Category("Grid")]
    [DefaultValue(2)]
    [Description("Which cell spot should be returned by GoGrid.FindNearestGridPoint.")]
    public virtual int SnapCellSpot {get; set;}

    Property Value

    The default value is GoObject.GoObject.TopLeft
    Remarks
    The most common values are GoObject.TopLeft and GoObject.Middle, corresponding to the most common spots used to control the GoObject.GoObject.Location. The values GoObject.MiddleLeft and GoObject.MiddleTop are also useful. Values such as GoObject.BottomRight are effectively the same as GoObject.TopLeft in the adjacent cell, just as GoObject.MiddleRight is the same as GoObject.MiddleLeft in a different adjacent cell.
    See Also