Skip to main content
Table of Contents

TTMSFNCCustomGraphicsFill.AddGradientItem Method

Appends a gradient stop with the given AColor, normalized APosition (0.0–1.0), and AOpacity.

API unit family: TMSFNCGraphicsTypes Declaring type: TTMSFNCCustomGraphicsFill

Syntax

FMX.TMSFNCGraphicsTypes.hppPascalC++
function AddGradientItem(AColor: TTMSFNCGraphicsColor; APosition: Single; AOpacity: Single = 1.0): TTMSFNCGraphicsFillGradientItem; virtual;
virtual TTMSFNCGraphicsFillGradientItem* __fastcall AddGradientItem(TTMSFNCGraphicsColor AColor, float APosition, float AOpacity = 1.000000E+00f);

Parameters

Name Description
AColor Color of the gradient stop.
APosition Normalized stop position from 0.0 to 1.0.
AOpacity Opacity for the stop, where 1.0 is fully opaque.

Returns

The newly created gradient item.