ImageEn, unit imageenview

TImageEnView.ShowRulers

TImageEnView.ShowRulers


Declaration

property ShowRulers: TRulerDirs;


Description

Specify whether rulers are shown on the TImageEnView. Rulers show the current position of the cursor and can include optional grips to mark the position of other objects.
Use RulerParams to configure the ruler properties.


Default: [] (No rulers)


Demo

Demo  Demos\Other\ImageEnViewRulers\ImageEnViewRulers.dpr


Example

// Show rulers in TImageEnView
ImageEnView1.ShowRulers := [ rdHorizontal, rdVertical ];

// Set units to CM
ImageEnView1.RulerParams.Units := ieuCentimeters;