ImageEn, unit iexLayers

TIELineLayer.IsRuler

TIELineLayer.IsRuler


Declaration


property IsRuler: Boolean;


Description


Displays the current line length as the label



Notes:
- LabelText has no effect if IsRuler is enabled
- Use RulerUnits to specify the display units
- Use MeasureDecimalPlaces to specify the number of decimal places
- Unit text can be edited with MeasureUnits
- Use TImageEnView.SetScale to adjust the scale of units

Default: False


Example


// Add a ruler layer showing lengths in CM (to one decimal place)
ImageEnView1.LayersAdd( ielkLine , 100, 100, 250, 250 );
TIELineLayer( ImageEnView1.CurrentLayer).IsRuler := True;
TIELineLayer( ImageEnView1.CurrentLayer).RulerUnits := ieuCentimeters;
IEGlobalSettings().MeasureDecimalPlaces := 1;
TIELineLayer( ImageEnView1.CurrentLayer).LabelPosition := ielpAutoAbove;
TIELineLayer( ImageEnView1.CurrentLayer).StartShape := ieesBar;
TIELineLayer( ImageEnView1.CurrentLayer).EndShape := ieesBar;
ImageEnView1.Update();


See Also


- MeasureDecimalPlaces
- MeasureUnits
- RulerUnits
- RulerValue
- SetScale
- Dpi