SnapMode Property

3D Graph Control

SnapMode Property

Syntax

CWCursor3D.SnapMode

Data Type

CWCursor3DSnapModes

You can use the following constants with this data type:

  • cwSnapFixed–Fixes the cursor at the specified x, y, and z position. The cursor cannot be moved.
  • cwSnapNearestPlot–Snaps the cursor to the nearest plot. You can move the cursor along the nearest plot.
  • cwSnapToPlot–Snaps the cursor to a specified plot. You can move the cursor along the specified plot.

Purpose

Specifies if the cursor can be dragged and how it snaps to the plot data.

Remarks

By default, CWGraph3D.TrackMode is set to cwG3DTrackZoomPanRotate. If you have changed the value of the TrackMode property, you must specify either cwG3DTrackZoomPanRotate or cwG3DTrackCursors to move cursors.

Example

CWGraph3D1.Cursors.Add
Set CWGraph3D1.Cursors(1).Plot = CWGraph3D1.Plots(1)
'The cursor is snapped to the plot specified above
CWGraph3D1.Cursors(1).SnapMode = cwSnapToPlot
'Place the cursor at column 5, row 10
CWGraph3D1.Cursors(1).Column = 5
CWGraph3D1.Cursors(1).Row = 10

See Also

Plot

Row

Column

XPosition

YPosition

ZPosition