ImageEn, unit imageenview

TImageEnView.LayersAutoClosePolylines

TImageEnView.LayersAutoClosePolylines


Declaration


property LayersAutoClosePolylines: TIEPolylineClosingMode;


Description


Specify whether a TIEPolylineLayer is automatically closed to become a polygon after the user completes drawing it using mlClickCreatePolylineLayers. A TIEPolylineLayer is closed by setting PolylineClosed=True.

Default: iecmOnNearFinish


Description


Item Description
iecmManual Polyline is not closed. You will need to manually set PolylineClosed to close it
iecmOnNearFinish Polyline will be closed drawing if the user clicks near the first point of the polyline
iecmAlways Polyline will be automatically closed (PolylineClosed will be set to true)



Example


// Always close polylines
ImageEnView1.LayersAutoClosePolylines := iecmAlways;