TIEViewRulerParams.SnapGrips
Declaration
property SnapGrips: TIERulerSnapping;
Description
Specifies whether grips snap to the closest label or whole number on the ruler.
Description
Item | Description |
iesnNone | Do not adjust grip positions |
iesnSnapToTick | Automatically move grips to the nearest tick |
iesnSnapToLabel | Automatically move grips to the nearest label (long tick) |
iesnSnapToWholeNumber | Automatically move grips to the nearest whole value on the ruler (e.g. move to 2.0 inches) |
Default: iesnNone
// Snap to the nearest label tick
ImageEnView1.RulerParams.SnapGrips := iesnSnapToLabel;
// Snap to the nearest whole number on the ruler
ImageEnView1.RulerParams.SnapGrips := iesnSnapToWholeNumber;