function FindLayer(const PropName, PropValue: string; SelectLayer: Boolean = False): Integer;
Description
Returns the index of the first layer with the specified tag, name or guid.
PropName must be one of IELP_Name, IELP_Tag, IELP_Guid.
Searches are NOT case-sensitive.
Result will be a layer index, or -1 if not found.
If SelectLayer is true, the layer will become active.
// Select layer with the tag of 15 ImageEnView1.FindLayer( IELP_Tag, IntToStr( 15 ), True );
// Which is the same as... lyr := ImageEnView1.FindLayer( IELP_Tag, IntToStr( 15 )); ImageEnView1.LayersDeselectAll(); ImageEnView1.LayersCurrent := lyr;