ImageEn, unit iexLayers

TIELineLayer.LabelFillColor2

TIELineLayer.LabelFillColor2


Declaration

property LabelFillColor2: TColor;


Description

The end color for the text label gradient.
If LabelFillColor2 is clNone, the text box is filled by a solid color specified by LabelFillColor. If LabelFillColor2 is different from LabelFillColor it is drawn as a gradient.
The direction of the gradient is specified by LabelFillGradient.

Note: The label does not have a fill if LabelPosition is ielpAbove, ielpBelow, ielpAutoAbove or ielpAutoBelow

Default: clNone


Example

// Set a horizontal gradient fill for the label of a line layer
TIELineLayer(ImageEnView1.CurrentLayer).LabelFillColor    := clRed;
TIELineLayer(ImageEnView1.CurrentLayer).LabelFillColor2   := clYellow;
TIELineLayer(ImageEnView1.CurrentLayer).LabelFillGradient := gpgHorizontal;
TIELineLayer(ImageEnView1.CurrentLayer).LabelBorderColor  := clBlack;
TIELineLayer(ImageEnView1.CurrentLayer).LabelBorderWidth  := 3;
ImageEnView1.Update();

// Which is the same as...
ImageEnView1.CurrentLayer.FillColor    := clRed;
ImageEnView1.CurrentLayer.FillColor2   := clYellow;
ImageEnView1.CurrentLayer.FillGradient := gpgHorizontal;
ImageEnView1.CurrentLayer.BorderColor  := clBlack;
ImageEnView1.CurrentLayer.BorderWidth  := 3;
ImageEnView1.Update();



// Disable the gradient fill of the label
TIELineLayer( ImageEnView1.CurrentLayer ).LabelFillColor2  := clNone;
ImageEnView1.Update();


See Also

 TIELayer.FillColor2
 LabelFillColor
 LabelFillGradient
 FillOpacity