ImageEn, unit iexLayers

TIELayer.FillGradient

TIELayer.FillGradient


Declaration


property FillGradient: TIELayerGradient;


Description


Provides generic access to the gradient fill direction for the layer.
To disable the gradient set the FillColor2 to clNone, or FillGradient to grdNone.

FillGradient accesses the following properties:
Class Property
TIEImageLayer N/A
TIEShapeLayer FillGradient
TIELineLayer LabelFillGradient
TIEPolylineLayer FillGradient
TIEAngleLayer -
TIETextLayer FillGradient



Example


// Set a vertical gradient fill for an ellipse
ImageEnView1.CurrentLayer.FillColor2 := clRed;
ImageEnView1.CurrentLayer.FillColor := clYellow;
ImageEnView1.CurrentLayer.FillGradient := grdVertical;
ImageEnView1.CurrentLayer.BorderWidth := 0;
ImageEnView1.Update();



// Set a horizontal gradient fill for the label of a line layer
ImageEnView1.CurrentLayer.FillColor := clRed;
ImageEnView1.CurrentLayer.FillColor2 := clYellow;
ImageEnView1.CurrentLayer.FillGradient := grdHorizontal;
ImageEnView1.CurrentLayer.BorderColor := clBlack;
ImageEnView1.CurrentLayer.BorderWidth := 3;
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.FillColor
- TIELayer.FillColor2
- TIELayer.FillOpacity