![]() |
SnapMode








Public Data Item |
Declared in: NiCursor.h |
Declaration
SnapModes SnapMode;
Description
Specifies the snap mode of the cursor. The following list includes cursor snap modes.
- CNiCursor::SnapFloating - sets cursor independent of any plot.
- CNiCursor::SnapNearestPoint - snaps cursor to nearest point on any plot.
- CNiCursor::SnapPointsOnPlot - snaps cursor to points on a specific plot.
- CNiCursor::SnapFixed - the cursor is independent of any plot or axes setting.
- CNiCursor::SnapNearestYForFixedX - for a fixed X location, the cursor's y value is the y value of the nearest point on the specified plot.
Note: SnapMode controls the coordinates available when you change the cursor position by dragging with the mouse, by using XPosition and YPosition properties or by using the SetPosition function. When you change the SnapMode, the current cursor position changes according to the new settings.