ImageEn, unit iexLayerMView

TImageEnLayerMView.LayerToIndex

TImageEnLayerMView.LayerToIndex


Declaration

function LayerToIndex(lyr: Integer) : integer;


Description

Returns the index (in this control) of a layer in the associated TImageEnView.
Result is -1 if the layer is hidden (i.e. using OnIncludeLayer).

See also: IndexToLayer


Example

idx := IELayerMView1.LayerToIndex( ImageEnView1.LayersCurrent );
IELayerMView1.ImageBottomText[ idx ] := 'CURRENT';