ImageEn, unit iexLayers

TIELayer.BorderWidth

TIELayer.BorderWidth


Declaration


property BorderWidth: Integer;


Description


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

BorderWidth accesses the following properties:
Class Property
TIEImageLayer BorderWidth
TIEShapeLayer BorderWidth
TIELineLayer LineWidth (also sets LabelBorderWidth)
TIEPolylineLayer LineWidth
TIEAngleLayer LineWidth
TIETextLayer BorderWidth



Example


// 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.BorderColor