ImageEn, unit iexLayers

TIETextLayer.FillGradient

TIETextLayer.FillGradient


Declaration


property FillGradient: TIELayerGradient;


Description


The direction of the gradient used for the text box fill.
If FillColor is different from FillColor2 the text box is filled with a gradient. FillGradient specifies the direction.
To disable the gradient set the FillColor2 to clNone, or FillGradient to grdNone.

Default: grdVertical


Example


// Add a red/blue horizontal gradient
TIETextLayer( ImageEnView1.CurrentLayer ).FillColor := clRed;
TIETextLayer( ImageEnView1.CurrentLayer ).FillColor2 := clBlue;
TIETextLayer( ImageEnView1.CurrentLayer ).FillGradient := grdHorizontal;
ImageEnView1.Update();


Compatibility Information


Prior to v8.0.0, FillGradient 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
- FillColor
- FillColor2
- FillOpacity