// Set the text for all text layers (other layer types will be ignored) ImageEnView1.LayersSetProperties( LYR_ALL_LAYERS, IELP_Text, 'Double-click to edit text' );
// Set style properties for selected layers ss := TStringList.Create; ss.Add( 'IELP_BorderColor=clNone' ); ss.Add( 'IELP_BorderWidth=0' ); ss.Add( 'IELP_FillColor=clYellow' ); ss.Add( 'IELP_FillColor2=clRed' ); ss.Add( 'IELP_FillGradient=1' ); LayersSetProperties( LYR_SELECTED_LAYERS, ss ); ss.Free();
// Update all layers to use the default measurement (i.e. after a change) ImageEnView1.LayersSetProperties( LYR_ALL_LAYERS, IELP_RulerUnits, IntToStr( ord( IEGlobalSettings().DefaultMeasureUnit )));