ImageEn, unit iexLayers

TIETextLayer.IsRuler

TIETextLayer.IsRuler


Declaration


property IsRuler: Boolean;


Description


Displays the current area as the text

Notes:
- Text has no effect if IsRuler is enabled
- If BorderShape = iesEllipse, it displays the area of an ellipse within the layer boundaries. In all other cases, it displays the whole area of the layer.
- 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
- Rich Text formatting is not supported when using IsRuler

Default: False


Examples


// Add a measure box layer showing rectangular area sizes in CM (to one decimal place)
ImageEnView1.LayersAdd( ielkText , 100, 100, 250, 250 );
TIETextLayer( ImageEnView1.CurrentLayer).IsRuler := True;
TIETextLayer( ImageEnView1.CurrentLayer).RulerUnits := ieuCentimeters;
IEGlobalSettings().MeasureDecimalPlaces := 1;
ImageEnView1.Update();

// Add a measure box layer showing elliptical area sizes in inches
ImageEnView1.LayersAdd( ielkText , 100, 100, 250, 250 );
TIETextLayer( ImageEnView1.CurrentLayer).IsRuler := True;
TIETextLayer( ImageEnView1.CurrentLayer).RulerUnits := ieuInches;
TIETextLayer( ImageEnView1.CurrentLayer).BorderShape := iesEllipse;
ImageEnView1.Update();


See Also


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