ImageEn, unit iexLayers

TIELayer.SetTextProperties

TIELayer.SetTextProperties


Declaration


procedure SetTextProperties(Adjust: TIETextAdjustment; Value: Integer);


Description


Sets properties of the text of a TIETextLayer or TIELineLayer.


Examples


// Prompt for a font
ImageEnView1.CurrentLayer.SetTextProperties( ietaPromptForFont, 0 );
ImageEnView1.Update();

// Increase the font size by 1 pt
ImageEnView1.CurrentLayer.SetTextProperties( ietaAdjustFontSize, 1 );
ImageEnView1.Update();

// Decrease the font size by 1 pt
ImageEnView1.CurrentLayer.SetTextProperties( ietaAdjustFontSize, -1 );
ImageEnView1.Update();

// Set the font size to 12 pt
ImageEnView1.CurrentLayer.SetTextProperties( ietaSetFontSize, 12 );
ImageEnView1.Update();

// Center text
ImageEnView1.CurrentLayer.SetTextProperties( ietaSetAlignment, ord( iejCenter ));
ImageEnView1.Update();

// Align text to bottom
ImageEnView1.CurrentLayer.SetTextProperties( ietaSetLayout, ord( ielBottom ));
ImageEnView1.Update();