ImageEn, unit iexLayers




property LabelFillGradient: TIELayerGradient;


The direction of the gradient used for the text label fill.
If LabelFillColor is different from LabelFillColor2 the text box is filled with a gradient. LabelFillGradient specifies the direction.
To disable the gradient set the LabelFillColor2 to clNone, or LabelFillGradient to grdNone.

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

Default: grdVertical


// 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 := grdHorizontal;
TIELineLayer(ImageEnView1.CurrentLayer).LabelBorderColor := clBlack;
TIELineLayer(ImageEnView1.CurrentLayer).LabelBorderWidth := 3;

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

Compatibility Information

Prior to v8.0.0, LabelFillGradient was of type TIEGradientDir. With the implementation of new gradient types in 8.0.0, the type was changed to TIELayerGradient. In your code, change references to gdVertical to grdVertical and gdHorizontal to grdHorizontal

See Also

- TIELayer.FillGradient
- LabelFillColor
- LabelFillColor2
- FillOpacity