ImageEn, unit iexLayers

TIELayer.FillColor

TIELayer.FillColor


Declaration


property FillColor: TColor;


Description


Provides generic access to the fill color of the layer. Set to clNone for no fill (i.e. transparent background)

FillColor accesses the following properties:
Class Property
TIEImageLayer N/A
TIEShapeLayer FillColor
TIELineLayer FillColor (also sets LabelFillColor)
TIEPolylineLayer FillColor
TIEAngleLayer -
TIETextLayer FillColor



Examples


// Set fill color for a shape to yellow
ImageEnView1.CurrentLayer.FillColor := clYellow;
ImageEnView1.Update();



// Remove fill color from shape
ImageEnView1.CurrentLayer.FillColor := clNone;
ImageEnView1.Update();



// Prompt to specify a fill color for the current layer
var
  aColor: TColor;
begin
  aColor := ImageEnView1.CurrentLayer.FillColor;
  if IEPromptForColor( aColor ) then
    ImageEnView1.CurrentLayer.FillColor := aColor;
  ImageEnView1.Update();
end;


See Also


- TIELayer.FillColor2
- TIELayer.FillGradient
- TIELayer.FillOpacity