documentationfor yFiles for HTML 3.0.0.3

Usages of GridSnapTypes

Properties

gridSnapTypein SnapContextGets or sets the type of the grid snapping that should be performed.

Method Return Values

from (GridSnapTypes)in GridSnapTypesConverts the given argument to an enum constant of this enum type.

Method Parameters

GraphSnapContext ()in GraphSnapContextCreates a new instance with default settings.
from (GridSnapTypes)in GridSnapTypesConverts the given argument to an enum constant of this enum type.
getName (GridSnapTypes)in GridSnapTypesReturns the name of the given enum constant.
SnapContext ()in SnapContextInitializes a new instance of the SnapContext class.
collectPointSnapResult (CollectSnapResultsEventArgs, IModelItem, Point, GridSnapTypes)in SnapGridCollects a valid SnapResult that snaps the movedPoint to grid points or lines of the gridInfo depending on the gridSnapTypes.