SnapToBlocks Property
Description
Gets or sets whether blocks getting dragged will "snap" to other adjacent blocks. (Track Control)
Property Type
Read-write property
Syntax (Visual Basic)
Public Property SnapToBlocks() As Boolean
Return Type
True to snap to other blocks, False to not snap to other blocks.
Remarks
When SnapToBlocks is True, while dragging a block it will attempt to "snap" to the nearest adjacent block once the block being dragged enters the SnapMargin of the block.
The SnapMargin specifies the margin, in pixels, that a block must be dragged into before it will snap to another block or snap to a marker.
TrackControl.SnapMargin = 10
TrackControl.SnapToBlocks = True
TrackControl.SnapToMarkers = True

See Also
Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.