ImageEn, unit iexLayers

TIELayer.BorderColor

TIELayer.BorderColor


Declaration


property BorderColor: TColor;


Description


Provides generic access to the color of the border/line of the layer.

BorderColor accesses the following properties:
Class Property
TIEImageLayer BorderColor
TIEShapeLayer BorderColor
TIELineLayer LineColor (also sets LabelBorderColor)
TIEPolylineLayer LineColor
TIEAngleLayer LineColor
TIETextLayer BorderColor



Examples


// Load an image layer and assign a pink border
ImageEnView1.LayersAdd( ielkImage ); // Append an image layer
ImageEnView1.IO.LoadFromFile('C:\New Zealand.jpg'); // Load image into the new/active layer
ImageEnView1.CurrentLayer.BorderColor := $008000FF;
ImageEnView1.CurrentLayer.BorderWidth := 3;
ImageEnView1.Update();



// Set style properties to an orange border with yellow fill
ImageEnView1.CurrentLayer.BorderColor := $004080FF;
ImageEnView1.CurrentLayer.BorderWidth := 2;
ImageEnView1.CurrentLayer.FillColor := clYellow;
ImageEnView1.Update();



// Remove the border...
ImageEnView1.CurrentLayer.BorderWidth := 0;
ImageEnView1.Update();




See Also


- TIELayer.BorderWidth