This is a flagging interface for instances of IGridConstraintProvider<T> that can snap coordinates of ILabelOwners to a grid.
Implements
Inheritance Hierarchy
Remarks
An implementation of this interface can be queried using the lookup of a IInputModeContext.
Members
Show:
Properties
Gets the canonical origin of the grid.
Gets the canonical origin of the grid.
readonlyabstract
Defined in
IGridConstraintProvider.gridOriginreadonlyabstract
readonlyabstract
Methods
abstract
Parameters
- context: IInputModeContext
- The context in which the snapping should occur.
- item: ILabelOwner
- The item of which the coordinates should be snapped.
- location: IMutablePoint
- The coordinates to snap.
- xSnapPolicy: SnapPolicy
- The policy for the x-coordinate.
- ySnapPolicy: SnapPolicy
- The policy for the y-coordinate.
Return Value
- boolean
- Whether the point has been snapped.
Defined in
IGridConstraintProvider.snapToGridStatic Methods
Creates an implementation of the interface ILabelOwnerGridConstraintProvider from the given definition.
Creates an implementation of the interface ILabelOwnerGridConstraintProvider from the given definition.
The given object must contain exactly the abstract members of the ILabelOwnerGridConstraintProvider interface. No member may be omitted and no additional members can be added. While additional custom members can later be added directly on the instance, this is discouraged.
static
Parameters
Return Value
- ILabelOwnerGridConstraintProvider
- An instance of the ILabelOwnerGridConstraintProvider interface based on the given definition.